diff --git a/src/m3u8download.c b/src/m3u8download.c index dd61b2c..d76a3f0 100644 --- a/src/m3u8download.c +++ b/src/m3u8download.c @@ -327,7 +327,11 @@ static int m3u8download_pollqueue( } if (running) { - code = curl_multi_poll(curl_multi, NULL, 0, 0, NULL); + code = curl_multi_poll(curl_multi, NULL, 0, 1000, NULL); + + if (code != CURLM_OK) { + code = curl_multi_poll(curl_multi, NULL, 0, 1000, NULL); + } } if (code != CURLM_OK) {