Fixed an issue where SpawnerService wouldn't terminate as intended if spawnerDatabase doesn't close succesfully

This commit is contained in:
Mads Boddum
2015-09-10 13:29:27 +02:00
parent 4110fd2039
commit 3c4ee47ee9
+1 -1
View File
@@ -95,7 +95,7 @@ public final class SpawnerService extends Service {
@Override
public boolean terminate() {
return spawnerDatabase.close() && super.terminate();
return super.terminate() && spawnerDatabase.close();
}
private void loadSpawners() {