From: Matthias Wachs Date: Wed, 8 Sep 2010 11:57:46 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~20392 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f99e141d6cbe5b2c43b835d450270d3a11724f5a;p=oweals%2Fgnunet.git --- 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; }