mirror of https://github.com/apache/activemq.git
fixed bug that prevented the initialReconnectDelay value from being changed
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f25cc68fb1
commit
f1bbfd3201
|
@ -115,6 +115,7 @@ public class FailoverTransport implements CompositeTransport {
|
|||
if( connectList.isEmpty() ) {
|
||||
failure = new IOException("No uris available to connect to.");
|
||||
} else {
|
||||
reconnectDelay = initialReconnectDelay;
|
||||
Iterator iter = connectList.iterator();
|
||||
for (int i = 0; iter.hasNext() && connectedTransport == null && !disposed; i++) {
|
||||
URI uri = (URI) iter.next();
|
||||
|
@ -126,7 +127,7 @@ public class FailoverTransport implements CompositeTransport {
|
|||
restoreTransport(t);
|
||||
}
|
||||
log.debug("Connection established");
|
||||
reconnectDelay = 10;
|
||||
reconnectDelay = initialReconnectDelay;
|
||||
connectedTransportURI = uri;
|
||||
connectedTransport = t;
|
||||
reconnectMutex.notifyAll();
|
||||
|
|
Loading…
Reference in New Issue