AMQ-4748: Fixed shutting down AMQ standalone does not raise exception.

This commit is contained in:
Claus Ibsen 2013-10-02 11:54:53 +02:00
parent 4a01e40cb4
commit e0f2dc9bd4
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}