mirror of https://github.com/apache/activemq.git
AMQ-4748: Fixed shutting down AMQ standalone does not raise exception.
This commit is contained in:
parent
4a01e40cb4
commit
e0f2dc9bd4
|
@ -116,7 +116,12 @@ public class StartCommand extends AbstractCommand {
|
|||
|
||||
// The broker has stopped..
|
||||
shutdownLatch.await();
|
||||
try {
|
||||
Runtime.getRuntime().removeShutdownHook(jvmShutdownHook);
|
||||
} catch (Throwable e) {
|
||||
// may already be shutdown in progress so ignore
|
||||
}
|
||||
|
||||
if( !broker.isRestartRequested() ) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue