Skip to content
Snippets Groups Projects
Commit 56fcf85a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

slightly improved

parent 77db81d6
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment