activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1478357 - /activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Date Thu, 02 May 2013 13:03:05 GMT
Author: gtully
Date: Thu May  2 13:03:04 2013
New Revision: 1478357

URL: http://svn.apache.org/r1478357
Log:
https://issues.apache.org/jira/browse/AMQ-4507 - apply fix with thanks

Modified:
    activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java

Modified: activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java?rev=1478357&r1=1478356&r2=1478357&view=diff
==============================================================================
--- activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
(original)
+++ activemq/trunk/activemq-client/src/main/java/org/apache/activemq/transport/failover/FailoverTransport.java
Thu May  2 13:03:04 2013
@@ -963,7 +963,7 @@ public class FailoverTransport implement
                             uri = bt.getUri();
                             if (priorityBackup && priorityBackupAvailable) {
                                 Transport old = this.connectedTransport.getAndSet(null);
-                                if (transport != null) {
+                                if (old != null) {
                                     disposeTransport(old);
                                 }
                                 priorityBackupAvailable = false;



Mime
View raw message