diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 56119bef1..895dc4256 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -711,8 +711,6 @@ void fetch_curl_poll(const char *scheme_ignored) CURLMcode codem; CURLMsg *curl_msg; - schedule_remove((schedule_callback_fn)fetch_curl_poll, NULL); - /* do any possible work on the current fetches */ do { codem = curl_multi_perform(fetch_curl_multi, &running); @@ -737,6 +735,10 @@ void fetch_curl_poll(const char *scheme_ignored) } curl_msg = curl_multi_info_read(fetch_curl_multi, &queue); } + + if (running != 0) { + schedule(10, (schedule_callback_fn)fetch_curl_poll, fetch_curl_poll); + } }