mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 08:46:47 +00:00
Shut down command dependencies in LIFO order
This commit is contained in:
1 parent
4af50986e0
commit
92e133b21f
1 file changed
+1
-1
+1
-1
@@ -58,7 +58,7 @@ public abstract class AbstractCommandWithDependencies extends EnvironmentCommand
|
||||
|
||||
} finally {
|
||||
logger.info("Stopping command dependencies");
|
||||
environment.lifecycle().getManagedObjects().forEach(managedObject -> {
|
||||
environment.lifecycle().getManagedObjects().reversed().forEach(managedObject -> {
|
||||
try {
|
||||
managedObject.stop();
|
||||
} catch (final Exception e) {
|
||||
|
||||
Reference in new issue
Block a user