input/buffered: rethrow read_error in Check()

This commit is contained in:
Max Kellermann 2019-05-16 22:08:33 +02:00
parent 63fe4d1d17
commit ca5a400dbe

View File

@ -59,6 +59,9 @@ BufferedInputStream::~BufferedInputStream() noexcept
void void
BufferedInputStream::Check() BufferedInputStream::Check()
{ {
if (read_error)
std::rethrow_exception(read_error);
if (input) if (input)
input->Check(); input->Check();
} }