mirror of
https://github.com/M66B/FairEmail.git
synced 2026-02-03 13:35:54 +01:00
Prevent poll from being locked out by watchdog
This commit is contained in:
@@ -500,7 +500,7 @@ public class ServiceUI extends IntentService {
|
||||
if (poll && enabled && pollInterval > 0) {
|
||||
long now = new Date().getTime();
|
||||
long interval = pollInterval * 60 * 1000L;
|
||||
long next = now + interval - now % interval;
|
||||
long next = now + interval - now % interval + 30 * 1000L;
|
||||
|
||||
EntityLog.log(context, "Poll next=" + new Date(next));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user