aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/multi-double.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/multi-double.c b/docs/examples/multi-double.c
index 2b92d55f5..51b4ed370 100644
--- a/docs/examples/multi-double.c
+++ b/docs/examples/multi-double.c
@@ -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;
}
}