reset curl timer if nothing is running anymore.

This commit is contained in:
Joris Vink 2019-10-23 12:38:31 +02:00
parent 890eb78fd8
commit da959e8275
1 changed files with 4 additions and 1 deletions

View File

@ -193,8 +193,11 @@ kore_curl_cleanup(struct kore_curl *client)
void
kore_curl_do_timeout(void)
{
while (timeout_immediate)
while (timeout_immediate) {
curl_timeout(NULL, kore_time_ms());
if (running == 0)
curl_timer(multi, -1, NULL);
}
}
size_t