Wait between retries if --wait option is used

This commit is contained in:
Sude 2020-04-08 09:22:58 +03:00
parent 42b4d784f1
commit d6c226c5d7

View File

@ -2782,6 +2782,9 @@ void Downloader::processDownloadQueue(Config conf, const unsigned int& tid)
bool bShouldRetry = false; bool bShouldRetry = false;
do do
{ {
if (conf.iWait > 0)
usleep(conf.iWait); // Wait before continuing
response_code = 0; // Make sure that response code is reset response_code = 0; // Make sure that response code is reset
if (iRetryCount != 0) if (iRetryCount != 0)