summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-05-16 22:05:25 +0200
committerMax Kellermann <max@musicpd.org>2019-05-16 22:05:25 +0200
commit63fe4d1d179eb7095d82a5d0cb2c2379faf0455f (patch)
tree3c5079e01d71a160627ecdbc88b9d2a256d09e5d /src
parentca06d9d3bf448066c8bb1795ae9a780a18036659 (diff)
input/buffered: wake up client thread on seek error
Diffstat (limited to 'src')
-rw-r--r--src/input/BufferedInputStream.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/BufferedInputStream.cxx b/src/input/BufferedInputStream.cxx
index 7ac4f0a2c..69fb0c064 100644
--- a/src/input/BufferedInputStream.cxx
+++ b/src/input/BufferedInputStream.cxx
@@ -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()) {