1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 08:46:15 +00:00

Configurable delay between Message downloads.

This commit is contained in:
Fabian Schlenz 2016-07-04 09:33:42 +02:00
parent 95e74c58eb
commit 7eed1f6bb1
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ class Config {
public static final int FILE_DOWNLOAD_BLOCK_SIZE = 10*1024*1024;
public static final int DELAY_AFTER_GET_MESSAGES = 200;
public static final int DELAY_AFTER_GET_FILE = 200;
}

View File

@ -77,7 +77,7 @@ class DownloadManager {
prog.onMessageDownloaded(response.getMessages().size());
db.save(response.getMessages());
try {
Thread.sleep(750);
Thread.sleep(Config.DELAY_AFTER_GET_MESSAGES);
} catch (InterruptedException e) {}
}