The FactionService Executor is now shut down in terminate()

This commit is contained in:
Mads Boddum
2016-10-27 03:43:09 +02:00
parent 7d961296be
commit 08b3528058
+2 -2
View File
@@ -71,11 +71,11 @@ public final class FactionService extends Service {
}
@Override
public boolean stop() {
public boolean terminate() {
// If some were in the middle of switching, finish the switches immediately
executor.shutdownNow().forEach(runnable -> runnable.run());
return super.stop();
return super.terminate();
}
private void handleFactionIntent(FactionIntent i) {