input/buffering: check error in IsAvailable()
This commit is contained in:
parent
555a4d738c
commit
219546cb81
|
@ -58,7 +58,7 @@ BufferingInputStream::Check()
|
|||
bool
|
||||
BufferingInputStream::IsAvailable(size_t offset) noexcept
|
||||
{
|
||||
if (offset >= size())
|
||||
if (offset >= size() || error)
|
||||
return true;
|
||||
|
||||
if (buffer.Read(offset).HasData())
|
||||
|
|
Loading…
Reference in New Issue