input/thread: check buffer.empty() in IsEOF()

This commit is contained in:
Max Kellermann 2024-07-29 23:02:59 +02:00
parent 2e78bd430c
commit 4a55e3e8bd

View File

@ -149,5 +149,5 @@ ThreadInputStream::IsEOF() const noexcept
{ {
assert(!thread.IsInside()); assert(!thread.IsInside());
return eof; return eof && buffer.empty();
} }