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:
Hiram R. Chirino 2008-06-04 15:15:57 +00:00
parent 0acf54586f
commit 3224ff8a0a
1 changed files with 1 additions and 2 deletions

View File

@ -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());