mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user