Longer backoff for Gmail

pull/172/head
M66B 6 years ago
parent 1d1b2e1601
commit 7dcf151922

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

Loading…
Cancel
Save