Call System.exit() to prevent shut-down components from being restarted.

Perhaps a better solution would be to make all components restartable,
but that's difficult as they may have entered error states.
This commit is contained in:
akwizgran
2013-02-19 23:10:37 +00:00
parent 2050e11415
commit 1da4079a81

View File

@@ -157,12 +157,13 @@ implements OnClickListener, DatabaseListener {
if(LOG.isLoggable(INFO)) LOG.info("Shutting down service");
service.shutdown();
service.waitForShutdown();
if(LOG.isLoggable(INFO)) LOG.info("Service shut down");
// Unbind from the service and finish the activity
// Unbind from the service, finish the activity, and die
runOnUiThread(new Runnable() {
public void run() {
unbindService(serviceConnection);
finish();
if(LOG.isLoggable(INFO)) LOG.info("Exiting");
System.exit(0);
}
});
} catch(InterruptedException e) {