mirror of
https://github.com/zeropingheroes/lancache-autofill
synced 2024-11-10 02:14:12 +00:00
Adding sleep and login check when rate limit error received (#23)
This commit is contained in:
parent
b8401c13ea
commit
562ebf2cf4
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,12 @@ class StartDownloading extends Command
|
|||
|
||||
$this->error('Failed to download ' . $appName . ' (App ID: ' . $item->app_id . ') for ' . $item->platform . ' from Steam account ' . $account);
|
||||
$this->updateQueueItemStatus($item->id, 'failed', $message);
|
||||
|
||||
if(str_contains(strtolower($message), 'rate limit') ) {
|
||||
$this->warn('Rate limit detected - sleeping for 1 minute');
|
||||
sleep(60);
|
||||
$this->checkSteamAccountsAreAuthorised();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue