1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-04 02:28:18 +00:00

Queue useful work only

This commit is contained in:
M66B 2018-11-28 20:18:08 +01:00
parent 6f49e81c0c
commit f5ee1c2953

View file

@ -2440,6 +2440,9 @@ public class ServiceSynchronize extends LifecycleService {
final boolean doStop = started;
final boolean doStart = (start && isEnabled() && suitableNetwork());
if (!doStop && !doStart)
return;
EntityLog.log(ServiceSynchronize.this, "Queue reload " +
" doStop=" + doStop + " doStart=" + doStart + " queued=" + queued + " " + reason);