projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77db81d
)
slightly improved
author
Daniel Stenberg
<daniel@haxx.se>
Sun, 8 Oct 2006 22:19:25 +0000
(22:19 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Sun, 8 Oct 2006 22:19:25 +0000
(22:19 +0000)
docs/examples/hiperfifo.c
patch
|
blob
|
history
diff --git
a/docs/examples/hiperfifo.c
b/docs/examples/hiperfifo.c
index
625ea76
..
f640bf9
100644
(file)
--- 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) {