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:
parent
6f49e81c0c
commit
f5ee1c2953
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue