aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-08 22:19:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-08 22:19:25 +0000
commit56fcf85ab61b4dc44796f1241e1b7c2349afc6ea (patch)
treeb3c383dd2268ae87429e8b64402e02b203a2b764 /docs/examples
parent77db81d661435a0b026ec6b16c35bd398ee1056e (diff)
slightly improved
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/hiperfifo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c
index 625ea761f..f640bf9dc 100644
--- a/docs/examples/hiperfifo.c
+++ b/docs/examples/hiperfifo.c
@@ -98,6 +98,9 @@ static void update_timeout(GlobalInfo *g)
struct timeval timeout;
curl_multi_timeout(g->multi, &timeout_ms);
+ if(timeout_ms < 0)
+ return;
+
timeout.tv_sec = timeout_ms/1000;
timeout.tv_usec = (timeout_ms%1000)*1000;
evtimer_add(&g->timer_event, &timeout);
@@ -152,6 +155,7 @@ static void check_run_count(GlobalInfo *g)
if (msg->msg == CURLMSG_DONE) {
easy=msg->easy_handle;
res=msg->data.result;
+ break;
}
}
if (easy) {