aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostthre.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 6698cd848..b24cff562 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -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);
}