input/thread: check IsEOF() in IsAvailable()

This commit is contained in:
Max Kellermann 2024-07-29 23:04:59 +02:00
parent 4a55e3e8bd
commit 61e8df913d
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ ThreadInputStream::IsAvailable() const noexcept
{
assert(!thread.IsInside());
return !buffer.empty() || eof || postponed_exception;
return !IsEOF() || postponed_exception;
}
inline size_t