input/buffered: check error in IsAvailable()
This commit is contained in:
parent
ca5a400dbe
commit
6922a2f55e
|
@ -104,7 +104,7 @@ BufferedInputStream::IsEOF() noexcept
|
|||
bool
|
||||
BufferedInputStream::IsAvailable() noexcept
|
||||
{
|
||||
return IsEOF() || buffer.Read(offset).HasData();
|
||||
return IsEOF() || buffer.Read(offset).HasData() || read_error;
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
Loading…
Reference in New Issue