aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_curl.c')
-rw-r--r--src/input_curl.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/input_curl.c b/src/input_curl.c
index 1d07674e9..06261a7ab 100644
--- a/src/input_curl.c
+++ b/src/input_curl.c
@@ -155,12 +155,14 @@ input_curl_multi_info_read(struct input_stream *is)
while ((msg = curl_multi_info_read(c->multi,
&msgs_in_queue)) != NULL) {
- if (msg->msg == CURLMSG_DONE &&
- msg->data.result != CURLE_OK) {
- g_warning("curl failed: %s\n", c->error);
- is->error = -1;
+ if (msg->msg == CURLMSG_DONE) {
c->eof = true;
- return false;
+
+ if (msg->data.result != CURLE_OK) {
+ g_warning("curl failed: %s\n", c->error);
+ is->error = -1;
+ return false;
+ }
}
}