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)
bool
AsyncInputStream::IsEOF()
{
return !open && buffer.IsEmpty();
return (KnownSize() && offset >= size) ||
(!open && buffer.IsEmpty());
}
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