diff options
author | Max Kellermann <max@musicpd.org> | 2019-05-16 22:08:33 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-05-16 22:08:33 +0200 |
commit | ca5a400dbe52efd6856f1264b7199cac77286e63 (patch) | |
tree | cb6e6319ac914645f9af66c4f48fef167af51ad9 | |
parent | 63fe4d1d179eb7095d82a5d0cb2c2379faf0455f (diff) |
input/buffered: rethrow read_error in Check()
-rw-r--r-- | src/input/BufferedInputStream.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/BufferedInputStream.cxx b/src/input/BufferedInputStream.cxx index 69fb0c064..4c8374bd9 100644 --- a/src/input/BufferedInputStream.cxx +++ b/src/input/BufferedInputStream.cxx @@ -59,6 +59,9 @@ BufferedInputStream::~BufferedInputStream() noexcept void BufferedInputStream::Check() { + if (read_error) + std::rethrow_exception(read_error); + if (input) input->Check(); } |