mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-19 13:18:02 +01:00
Shut down command dependencies in LIFO order
This commit is contained in:
committed by
Jon Chambers
parent
4af50986e0
commit
92e133b21f
@@ -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