mirror of https://github.com/apache/activemq.git
make sure that the task runner is the first thing setup since other startup bits might want to do an async send.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@663178 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0acf54586f
commit
3224ff8a0a
|
@ -847,14 +847,13 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||||
starting = true;
|
starting = true;
|
||||||
try {
|
try {
|
||||||
synchronized(this) {
|
synchronized(this) {
|
||||||
transport.start();
|
|
||||||
|
|
||||||
if (taskRunnerFactory != null) {
|
if (taskRunnerFactory != null) {
|
||||||
taskRunner = taskRunnerFactory.createTaskRunner(this, "ActiveMQ Connection Dispatcher: "
|
taskRunner = taskRunnerFactory.createTaskRunner(this, "ActiveMQ Connection Dispatcher: "
|
||||||
+ getRemoteAddress());
|
+ getRemoteAddress());
|
||||||
} else {
|
} else {
|
||||||
taskRunner = null;
|
taskRunner = null;
|
||||||
}
|
}
|
||||||
|
transport.start();
|
||||||
|
|
||||||
active = true;
|
active = true;
|
||||||
this.processDispatch(connector.getBrokerInfo());
|
this.processDispatch(connector.getBrokerInfo());
|
||||||
|
|
Loading…
Reference in New Issue