activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1071257 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp
Date Wed, 16 Feb 2011 14:00:40 GMT
Author: tabish
Date: Wed Feb 16 14:00:40 2011
New Revision: 1071257

URL: http://svn.apache.org/viewvc?rev=1071257&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQCPP-351

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp?rev=1071257&r1=1071256&r2=1071257&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/failover/FailoverTransportListener.cpp
Wed Feb 16 14:00:40 2011
@@ -75,14 +75,7 @@ void FailoverTransportListener::onComman
         }
     }
 
-    if( !parent->isInitialized() && command->isBrokerInfo() ) {
-
-        Pointer<BrokerInfo> info = command.dynamicCast<BrokerInfo>();
-        std::vector< Pointer<BrokerInfo> >& peers = info->getPeerBrokerInfos();
-        for( std::size_t i = 0; i < peers.size(); ++i ) {
-            std::string brokerString = peers[i]->getBrokerURL();
-            parent->add( brokerString );
-        }
+    if( !parent->isInitialized() ) {
         parent->setInitialized( true );
     }
 



Mime
View raw message