mirror of https://github.com/M66B/FairEmail.git
Longer backoff for Gmail
This commit is contained in:
parent
1d1b2e1601
commit
7dcf151922
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue