mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 22:59:54 +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");
|
if(LOG.isLoggable(INFO)) LOG.info("Shutting down service");
|
||||||
service.shutdown();
|
service.shutdown();
|
||||||
service.waitForShutdown();
|
service.waitForShutdown();
|
||||||
if(LOG.isLoggable(INFO)) LOG.info("Service shut down");
|
// Unbind from the service, finish the activity, and die
|
||||||
// Unbind from the service and finish the activity
|
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
unbindService(serviceConnection);
|
unbindService(serviceConnection);
|
||||||
finish();
|
finish();
|
||||||
|
if(LOG.isLoggable(INFO)) LOG.info("Exiting");
|
||||||
|
System.exit(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch(InterruptedException e) {
|
} catch(InterruptedException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user