Commit fb52a24d authored by Max Kellermann's avatar Max Kellermann

input/async: add offset/size comparison to IsEOF()

parent fbafb196
...@@ -89,7 +89,8 @@ AsyncInputStream::Check(Error &error) ...@@ -89,7 +89,8 @@ AsyncInputStream::Check(Error &error)
bool bool
AsyncInputStream::IsEOF() AsyncInputStream::IsEOF()
{ {
return !open && buffer.IsEmpty(); return (KnownSize() && offset >= size) ||
(!open && buffer.IsEmpty());
} }
bool bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment