(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Jul 2010 11:14:03 +0000 (11:14 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 12 Jul 2010 11:14:03 +0000 (11:14 +0000)
src/transport/plugin_transport_http.c

index 48886cc0742070a66ad6e5d416f3c5e7f54b1032..2671a504d6ebac809106674254e6008e14923dfc 100644 (file)
@@ -1313,12 +1313,14 @@ static void curl_perform (void *cls,
     {
       running = 0;
       mret = curl_multi_perform (plugin->multi_handle, &running);
-      if (running < handles_last_run)
+      if ((running < handles_last_run) && (running>0))
         {
           do
             {
 
               msg = curl_multi_info_read (plugin->multi_handle, &running);
+              if (running == 0)
+                 break;
               /* get session for affected curl handle */
               GNUNET_assert ( msg->easy_handle != NULL );
               curl_easy_getinfo(msg->easy_handle, CURLINFO_PRIVATE, (char *) &ps);