threaded resolver: fix timeout issue

Reset old timer first so we can set a new one further in the future.
This commit is contained in:
Constantine Sapuntzakis 2010-07-12 19:03:51 +02:00 committed by Daniel Stenberg
parent 241b704e1f
commit 3992309285
1 changed files with 3 additions and 0 deletions

View File

@ -451,6 +451,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
td->interval_end = elapsed + td->poll_interval;
/* Reset old timer so we can set a new one further in the future */
Curl_expire(conn->data, 0);
Curl_expire(conn->data, td->poll_interval);
}