mirror of https://github.com/apache/activemq.git
Further change for https://issues.apache.org/activemq/browse/AMQ-1771
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@663691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e40e2ac67a
commit
60d4d48fbf
|
@ -725,11 +725,12 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
|
|
||||||
// Make sure on initial startup, that the transportListener has been initialized
|
// Make sure on initial startup, that the transportListener has been initialized
|
||||||
// for this instance.
|
// for this instance.
|
||||||
while(transportListener == null) {
|
synchronized(listenerMutex) {
|
||||||
|
if (transportListener==null) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
listenerMutex.wait(2000);
|
||||||
|
}catch(InterruptedException ex) {}
|
||||||
}
|
}
|
||||||
catch(InterruptedException iEx) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue