diff --git a/src/input/BufferedInputStream.cxx b/src/input/BufferedInputStream.cxx index 4c8374bd9..4e078485d 100644 --- a/src/input/BufferedInputStream.cxx +++ b/src/input/BufferedInputStream.cxx @@ -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