input/async: add offset/size comparison to IsEOF()
This commit is contained in:
parent
fbafb19657
commit
fb52a24da3
@ -89,7 +89,8 @@ AsyncInputStream::Check(Error &error)
|
||||
bool
|
||||
AsyncInputStream::IsEOF()
|
||||
{
|
||||
return !open && buffer.IsEmpty();
|
||||
return (KnownSize() && offset >= size) ||
|
||||
(!open && buffer.IsEmpty());
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user