From 16e0da2c4b5048129fdb04896dbb0ec86a927ae0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 9 Jan 2003 11:42:07 +0000 Subject: call curl_multi_perform() correctly --- docs/examples/multi-single.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/examples/multi-single.c') 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; } } -- cgit v1.2.3