]> granicus.if.org Git - curl/commitdiff
call curl_multi_perform() correctly
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Jan 2003 11:42:07 +0000 (11:42 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Jan 2003 11:42:07 +0000 (11:42 +0000)
docs/examples/multi-single.c

index 562886a10365c92d70242f385e9c2c12a9c46dea..1998d25dbc145e8daecf6ad3de078efe003ed88a 100644 (file)
@@ -74,7 +74,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;
     }
   }