Commit ca5a400d authored by Max Kellermann's avatar Max Kellermann

input/buffered: rethrow read_error in Check()

parent 63fe4d1d
...@@ -59,6 +59,9 @@ BufferedInputStream::~BufferedInputStream() noexcept ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment