input/buffered: wake up client thread on seek error

This commit is contained in:
Max Kellermann 2019-05-16 22:05:25 +02:00
parent ca06d9d3bf
commit 63fe4d1d17
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ BufferedInputStream::RunThread() noexcept
own InputStream interface) is in
"read" mode */
read_error = std::current_exception();
client_cond.signal();
InvokeOnAvailable();
}
} else if (!idle && !read_error &&
input->IsAvailable() && !input->IsEOF()) {