aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/multi-app.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/multi-app.c b/docs/examples/multi-app.c
index 13a221325..aead0244f 100644
--- a/docs/examples/multi-app.c
+++ b/docs/examples/multi-app.c
@@ -83,7 +83,8 @@ int main(int argc, char **argv)
default:
/* one or more of curl's file descriptors say there's data to read
or write */
- curl_multi_perform(multi_handle, &still_running);
+ while(CURLM_CALL_MULTI_PERFORM ==
+ curl_multi_perform(multi_handle, &still_running));
break;
}
}