Message bus doActivate(..) only calls start() on dispatcher if it's not already running.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user