diff options
author | Max Kellermann <max@duempel.org> | 2015-06-19 16:45:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-19 16:45:38 +0200 |
commit | 947e902288d5436c62214c509fda81708815b3d6 (patch) | |
tree | 43df5805f97ed4178d552f06b10dc78340f6a7d0 /src/input/plugins | |
parent | 3436a646b5a2fc181056fa44989e17ff1f6b083c (diff) | |
download | mpd-947e902288d5436c62214c509fda81708815b3d6.tar.gz mpd-947e902288d5436c62214c509fda81708815b3d6.tar.xz mpd-947e902288d5436c62214c509fda81708815b3d6.zip |
input/curl: trigger the condition variable in RequestDone()
Fixes deadlock on small responses.
Diffstat (limited to '')
-rw-r--r-- | src/input/plugins/CurlInputPlugin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index abb7e312c..3aa3b0018 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -453,6 +453,8 @@ CurlInputStream::RequestDone(CURLcode result, long status) SeekDone(); else if (!IsReady()) SetReady(); + else + cond.broadcast(); } static void |