From f99e141d6cbe5b2c43b835d450270d3a11724f5a Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 8 Sep 2010 11:57:46 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 44e4c9aba..15b335aa3 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -1455,6 +1455,7 @@ static void curl_perform (void *cls, struct Plugin *plugin = cls; static unsigned int handles_last_run; int running; + int msgs_in_queue; struct CURLMsg *msg; CURLMcode mret; struct Session *ps = NULL; @@ -1478,7 +1479,7 @@ static void curl_perform (void *cls, do { - msg = curl_multi_info_read (plugin->multi_handle, &running); + msg = curl_multi_info_read (plugin->multi_handle, &msgs_in_queue); if (running == 0) break; /* get session for affected curl handle */ @@ -1593,7 +1594,7 @@ static void curl_perform (void *cls, } } - while ( (running > 0) ); + while ( (msgs_in_queue > 0) ); } handles_last_run = running; } -- 2.25.1