mirror of https://github.com/apache/activemq.git
member variable scheduler assignment escapes the synchronization block before the scheduler instance is fully initialized.
This commit is contained in:
parent
3c69127524
commit
d54e0d6ab5
|
@ -2556,8 +2556,9 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
checkClosed();
|
checkClosed();
|
||||||
try {
|
try {
|
||||||
result = scheduler = new Scheduler("ActiveMQConnection["+info.getConnectionId().getValue()+"] Scheduler");
|
result = new Scheduler("ActiveMQConnection["+info.getConnectionId().getValue()+"] Scheduler");
|
||||||
scheduler.start();
|
result.start();
|
||||||
|
scheduler = result;
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
throw JMSExceptionSupport.create(e);
|
throw JMSExceptionSupport.create(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue