diff options
author | Max Kellermann <max@duempel.org> | 2014-05-24 14:36:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-24 14:36:25 +0200 |
commit | 6c4438d8a9ff12db9bb6323e128a69de6cd4e2b7 (patch) | |
tree | e11616cf0bb3ea277d347a3143cc169b06819554 /src/input | |
parent | be00737ced8dfe8b36d04b89e686663920417299 (diff) | |
download | mpd-6c4438d8a9ff12db9bb6323e128a69de6cd4e2b7.tar.gz mpd-6c4438d8a9ff12db9bb6323e128a69de6cd4e2b7.tar.xz mpd-6c4438d8a9ff12db9bb6323e128a69de6cd4e2b7.zip |
input/curl: call SetReady() only if not yet ready
Fixes assertion failure.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/plugins/CurlInputPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index 337ffc833..b48512ccb 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -484,7 +484,8 @@ CurlInputStream::RequestDone(CURLcode result, long status) status); } - SetReady(); + if (!IsReady()) + SetReady(); } static void |