Reload is synchroneous

pull/146/head
M66B 6 years ago
parent ec3c746f93
commit 1c523f1d63

@ -2436,7 +2436,6 @@ public class ServiceSynchronize extends LifecycleService {
} }
private void queue_reload(final boolean start, final String reason) { private void queue_reload(final boolean start, final String reason) {
synchronized (queue) {
final boolean doStop = started; final boolean doStop = started;
final boolean doStart = (start && isEnabled() && suitableNetwork()); final boolean doStart = (start && isEnabled() && suitableNetwork());
@ -2456,7 +2455,7 @@ public class ServiceSynchronize extends LifecycleService {
@Override @Override
public void run() { public void run() {
EntityLog.log(ServiceSynchronize.this, "Reload " + EntityLog.log(ServiceSynchronize.this, "Reload " +
" doStop=" + doStop + " doStart=" + doStart + " queued=" + queued + " " + reason); " stop=" + doStop + " start=" + doStart + " queued=" + queued + " " + reason);
try { try {
wl.acquire(); wl.acquire();
@ -2491,7 +2490,6 @@ public class ServiceSynchronize extends LifecycleService {
started = doStart; started = doStart;
} }
}
private BroadcastReceiver outboxReceiver = new BroadcastReceiver() { private BroadcastReceiver outboxReceiver = new BroadcastReceiver() {
@Override @Override

Loading…
Cancel
Save