diff options
Diffstat (limited to '')
-rw-r--r-- | src/input/AsyncInputStream.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/AsyncInputStream.cxx b/src/input/AsyncInputStream.cxx index 3f2d3b90f..169a9e8e4 100644 --- a/src/input/AsyncInputStream.cxx +++ b/src/input/AsyncInputStream.cxx @@ -89,7 +89,8 @@ AsyncInputStream::Check(Error &error) bool AsyncInputStream::IsEOF() { - return !open && buffer.IsEmpty(); + return (KnownSize() && offset >= size) || + (!open && buffer.IsEmpty()); } bool |