From 9c19776c17969d2dd46bf6f3e410816fe01203af Mon Sep 17 00:00:00 2001 From: James Strachan Date: Wed, 15 Mar 2006 14:14:29 +0000 Subject: [PATCH] catch interupted exceptions git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@386076 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/transport/failover/FailoverTransport.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java b/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java index 2e27e2f733..fb01d91d62 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java @@ -322,7 +322,12 @@ public class FailoverTransport implements CompositeTransport { // Wait for transport to be connected. while (connectedTransport == null && !disposed && connectionFailure==null ) { 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 ) {