summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-24 14:36:25 +0200
committerMax Kellermann <max@duempel.org>2014-05-24 14:36:25 +0200
commit6c4438d8a9ff12db9bb6323e128a69de6cd4e2b7 (patch)
treee11616cf0bb3ea277d347a3143cc169b06819554 /src
parentbe00737ced8dfe8b36d04b89e686663920417299 (diff)
input/curl: call SetReady() only if not yet ready
Fixes assertion failure.
Diffstat (limited to 'src')
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx3
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