mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 03:39:17 +01:00
Wait between retries if --wait option is used
This commit is contained in:
parent
42b4d784f1
commit
d6c226c5d7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user