Verified that all ODBs were saved upon termination

This commit is contained in:
Obique
2015-05-16 03:16:54 -05:00
committed by Obique
parent 4e18d19cd8
commit 2841be045c
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -95,6 +95,12 @@ public class ChatService extends Service {
return super.initialize();
}
@Override
public boolean terminate() {
mails.close();
return super.terminate();
}
public void onIntentReceived(Intent i) {
switch (i.getType()) {
case GalacticPacketIntent.TYPE:
+1 -1
View File
@@ -178,7 +178,7 @@ public class ObjectManager extends Manager {
obj.setOwner(null);
}
});
objects.save();
objects.close();
return super.terminate();
}