Merge branch 'return-early-if-services-are-stopped-twice' into 'master'

Return early if LifecycleManager#stopServices() is called twice

See merge request briar/briar!1659
This commit is contained in:
Torsten Grote
2022-06-07 11:55:07 +00:00
2 changed files with 45 additions and 0 deletions

View File

@@ -190,6 +190,10 @@ class LifecycleManagerImpl implements LifecycleManager, MigrationListener {
return;
}
try {
if (state == STOPPING) {
LOG.info("Already stopped");
return;
}
LOG.info("Stopping services");
state = STOPPING;
eventBus.broadcast(new LifecycleEvent(STOPPING));