From a39cdc80b7ed6d98612a718e7eec63bb44a4a46b Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 3 Dec 2002 12:34:43 +0000
Subject: [PATCH] Jeff pointed out this flaw in the example

---
 docs/examples/multi-double.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/examples/multi-double.c b/docs/examples/multi-double.c
index 2b92d55f5c..51b4ed3701 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;
     }
   }
-- 
GitLab