INT-393: destroy() on DefaultMessageBus will automatically attempt to stop it, if that didn't happen already.

This commit is contained in:
Marius Bogoevici
2008-10-08 14:41:14 +00:00
parent 1d835a32fe
commit 60550172f9

View File

@@ -331,6 +331,7 @@ public class DefaultMessageBus implements MessageBus, ApplicationContextAware, A
}
public void destroy() throws Exception {
this.stop();
if (this.taskScheduler instanceof DisposableBean) {
((DisposableBean) this.taskScheduler).destroy();
}