summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-09 18:08:33 +0100
committerMax Kellermann <max@musicpd.org>2017-01-09 18:08:33 +0100
commitc3fc84de121f7caf2262544bf5aba8ee04590e3c (patch)
treeeb41830c2ce9d654ee7b4d43d6ed34c921a06cbb /src/input
parent904f83cd851418a373a8acd99ce158b54212b74a (diff)
input/curl: wake up client thread after seek to end of file
Call SeekDone() to avoid the freeze bug.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index 0789cac3a..b972876a0 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -385,11 +385,13 @@ CurlInputStream::SeekInternal(offset_type new_offset)
FreeEasy();
offset = new_offset;
- if (offset == size)
+ if (offset == size) {
/* seek to EOF: simulate empty result; avoid
triggering a "416 Requested Range Not Satisfiable"
response */
+ SeekDone();
return;
+ }
InitEasy();