activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r507761 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Date Thu, 15 Feb 2007 00:49:00 GMT
Author: tabish
Date: Wed Feb 14 16:48:59 2007
New Revision: 507761

URL: http://svn.apache.org/viewvc?view=rev&rev=507761
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Fix the shutdown method so that it clones the connectionId field into the RemoveInfo command,
otherwise it gets deleted twice.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp?view=diff&rev=507761&r1=507760&r2=507761
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenWireConnector.cpp
Wed Feb 14 16:48:59 2007
@@ -238,7 +238,7 @@
 
         // Remove our ConnectionId from the Broker
         RemoveInfo remove;
-        remove.setObjectId( connectionInfo.getConnectionId() );
+        remove.setObjectId( connectionInfo.getConnectionId()->cloneDataStructure() );
         transport->oneway( &remove );
 
         // Send the disconnect command to the broker.



Mime
View raw message