activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1327132 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp
Date Tue, 17 Apr 2012 15:10:06 GMT
Author: tabish
Date: Tue Apr 17 15:10:06 2012
New Revision: 1327132

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

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp?rev=1327132&r1=1327131&r2=1327132&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/kernels/ActiveMQConsumerKernel.cpp
Tue Apr 17 15:10:06 2012
@@ -742,7 +742,11 @@ void ActiveMQConsumerKernel::afterMessag
         }
 
         if (messageExpired == true) {
+            synchronized(&this->internal->dispatchedMessages) {
+                this->internal->dispatchedMessages.remove(message);
+            }
             ackLater(message, ActiveMQConstants::ACK_TYPE_DELIVERED);
+            return;
         }
 
         if (session->isTransacted()) {



Mime
View raw message