]> granicus.if.org Git - curl/commitdiff
Jeff pointed out this flaw in the example
authorDaniel Stenberg <daniel@haxx.se>
Tue, 3 Dec 2002 12:34:43 +0000 (12:34 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 3 Dec 2002 12:34:43 +0000 (12:34 +0000)
docs/examples/multi-double.c

index 2b92d55f5c7f09b340a2f84ced1c572ea14d4c2f..51b4ed37011cf5b96546461e6fe15aa635cd11be 100644 (file)
@@ -80,7 +80,8 @@ int main(int argc, char **argv)
     case 0:
     default:
       /* timeout or readable/writable sockets */
-      curl_multi_perform(multi_handle, &still_running);
+      while(CURLM_CALL_MULTI_PERFORM ==
+            curl_multi_perform(multi_handle, &still_running));
       break;
     }
   }