From 7dcf1519221b33dba7735b495ffab50f47fb12dd Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 1 Jan 2020 16:26:53 +0100 Subject: [PATCH] Longer backoff for Gmail --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 0f1926370d..1c987d3a3e 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -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()); }