mirror of https://github.com/apache/activemq.git
catch interupted exceptions
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2fc7a2dc0
commit
9c19776c17
|
@ -322,7 +322,12 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
// Wait for transport to be connected.
|
// Wait for transport to be connected.
|
||||||
while (connectedTransport == null && !disposed && connectionFailure==null ) {
|
while (connectedTransport == null && !disposed && connectionFailure==null ) {
|
||||||
log.debug("Waiting for transport to reconnect.");
|
log.debug("Waiting for transport to reconnect.");
|
||||||
reconnectMutex.wait(1000);
|
try {
|
||||||
|
reconnectMutex.wait(1000);
|
||||||
|
}
|
||||||
|
catch (InterruptedException e) {
|
||||||
|
log.debug("Interupted: " + e, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( connectedTransport==null ) {
|
if( connectedTransport==null ) {
|
||||||
|
|
Loading…
Reference in New Issue