Faster keep-alive tuning

This commit is contained in:
M66B 2020-10-21 08:33:28 +02:00
parent d310462844
commit 516c48206c
1 changed files with 1 additions and 1 deletions

View File

@ -1461,7 +1461,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
account.keep_alive_succeeded = 0;
if (account.keep_alive_failed >= 3) {
account.keep_alive_failed = 0;
account.poll_interval--;
account.poll_interval = account.poll_interval - 2;
db.account().setAccountKeepAliveInterval(account.id, account.poll_interval);
}
db.account().setAccountKeepAliveValues(account.id,