activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r784950 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp
Date Mon, 15 Jun 2009 19:55:25 GMT
Author: tabish
Date: Mon Jun 15 19:55:24 2009
New Revision: 784950

URL: http://svn.apache.org/viewvc?rev=784950&view=rev
Log:
Minor fix, clear PendingAck pointer once an ack is sent.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp?rev=784950&r1=784949&r2=784950&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp Mon
Jun 15 19:55:24 2009
@@ -547,7 +547,7 @@
             } else if( pendingAck != NULL &&
                        pendingAck->getAckType() == ActiveMQConstants::ACK_TYPE_CONSUMED
) {
 
-                ack = pendingAck;
+                ack.swap( pendingAck );
             }
 
             if( ack != NULL ) {



Mime
View raw message