Message bus doActivate(..) only calls start() on dispatcher if it's not already running.

This commit is contained in:
Mark Fisher
2008-01-14 19:49:38 +00:00
parent 2b29791fde
commit aa0930a43a
2 changed files with 1 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ public class MessageBus implements ChannelRegistry, ApplicationContextAware, Lif
handler = new PooledMessageHandler(handler, concurrencyPolicy.getCoreConcurrency(), concurrencyPolicy.getMaxConcurrency());
}
dispatcher.addHandler(handler, schedule);
if (this.isRunning()) {
if (this.isRunning() && !dispatcher.isRunning()) {
dispatcher.start();
}
}