mirror of https://github.com/M66B/FairEmail.git
Faster keep-alive tuning
This commit is contained in:
parent
d310462844
commit
516c48206c
|
@ -1461,7 +1461,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
account.keep_alive_succeeded = 0;
|
account.keep_alive_succeeded = 0;
|
||||||
if (account.keep_alive_failed >= 3) {
|
if (account.keep_alive_failed >= 3) {
|
||||||
account.keep_alive_failed = 0;
|
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().setAccountKeepAliveInterval(account.id, account.poll_interval);
|
||||||
}
|
}
|
||||||
db.account().setAccountKeepAliveValues(account.id,
|
db.account().setAccountKeepAliveValues(account.id,
|
||||||
|
|
Loading…
Reference in New Issue