Commit 39923092 authored by Constantine Sapuntzakis's avatar Constantine Sapuntzakis Committed by Daniel Stenberg
Browse files

threaded resolver: fix timeout issue

Reset old timer first so we can set a new one further in the future.
parent 241b704e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
  }