Longer backoff for Gmail

This commit is contained in:
M66B 2020-01-01 16:26:53 +01:00
parent 1d1b2e1601
commit 7dcf151922
1 changed files with 2 additions and 1 deletions

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());
}