mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-26 06:45:33 +00:00
Continue to next iteration on FLOOD_WAIT error
This commit is contained in:
parent
3911af1f88
commit
a34ba8a84c
@ -431,6 +431,7 @@ class DownloadManager(internal var client: TelegramClient?, p: DownloadProgressI
|
||||
if (e.getCode() == 420) { // FLOOD_WAIT
|
||||
try_again = true
|
||||
Utils.obeyFloodWaitException(e)
|
||||
continue // response is null since we didn't actually receive any data. Skip the rest of this iteration and try again.
|
||||
} else if (e.getCode() == 400) {
|
||||
//Somehow this file is broken. No idea why. Let's skip it for now
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user