aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-09 11:42:07 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-09 11:42:07 +0000
commit16e0da2c4b5048129fdb04896dbb0ec86a927ae0 (patch)
tree25ca4ccda4fa66e16e58b0d08642b5e60000de85
parented22f752414b12dc2790cdaae87f410451db3d53 (diff)
call curl_multi_perform() correctly
-rw-r--r--docs/examples/multi-single.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/multi-single.c b/docs/examples/multi-single.c
index 562886a10..1998d25db 100644
--- a/docs/examples/multi-single.c
+++ b/docs/examples/multi-single.c
@@ -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;
}
}