git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@663691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-06-05 18:11:46 +00:00
parent e40e2ac67a
commit 60d4d48fbf
1 changed files with 6 additions and 5 deletions

View File

@ -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) {}
} }