mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Shutdown from background if BriarService is recreated.
This commit is contained in:
@@ -157,9 +157,9 @@ public class BriarService extends Service {
|
|||||||
started = true;
|
started = true;
|
||||||
} else if (result == ALREADY_RUNNING) {
|
} else if (result == ALREADY_RUNNING) {
|
||||||
LOG.warning("Already running");
|
LOG.warning("Already running");
|
||||||
// The LifecycleManager has outlived the BriarService
|
// The core has outlived the original BriarService
|
||||||
// instance that created it. Rather than trying to recover
|
// instance. We don't know how to recover from this
|
||||||
// from this unexpected state, try to exit cleanly
|
// unexpected state, so try to exit cleanly
|
||||||
shutdownFromBackground();
|
shutdownFromBackground();
|
||||||
} else {
|
} else {
|
||||||
if (LOG.isLoggable(WARNING))
|
if (LOG.isLoggable(WARNING))
|
||||||
|
|||||||
Reference in New Issue
Block a user