1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 08:23:24 +00:00

Longer backoff for Gmail

This commit is contained in:
M66B 2020-01-01 16:26:53 +01:00
parent 1d1b2e1601
commit 7dcf151922

View file

@ -1295,7 +1295,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
// Short back-off period, keep device awake
EntityLog.log(this, account.name + " backoff=" + backoff);
try {
state.acquire(backoff * 1000L);
state.acquire(backoff *
("imap.gmail.com".equalsIgnoreCase(account.host) ? 1500L : 1000L));
} catch (InterruptedException ex) {
Log.w(account.name + " backoff " + ex.toString());
}