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;
do
{
if (conf.iWait > 0)
usleep(conf.iWait); // Wait before continuing
response_code = 0; // Make sure that response code is reset
if (iRetryCount != 0)