Make sure the service stops when disabled

pull/147/head
M66B 6 years ago
parent c4a07e2fd4
commit 0267e7ad39

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

Loading…
Cancel
Save