1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 09:16:14 +00:00

Update DownloadManager.kt

This commit is contained in:
Leijurv 2018-02-14 10:58:51 -08:00 committed by GitHub
parent 3ee90ac6c6
commit 1541d3c551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,6 +434,9 @@ class DownloadManager(internal var client: TelegramClient?, p: DownloadProgressI
continue // response is null since we didn't actually receive any data. Skip the rest of this iteration and try again. 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) { } else if (e.getCode() == 400) {
//Somehow this file is broken. No idea why. Let's skip it for now //Somehow this file is broken. No idea why. Let's skip it for now
System.out.println("400 error code")
e.printStackTrace()
System.out.println("400 error code")
return false return false
} else { } else {
throw e throw e