Skip to content

Commit

Permalink
Minor fix, clear PendingAck pointer once an ack is sent.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk@784950 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Timothy A. Bish committed Jun 15, 2009
1 parent 0545f14 commit c47e4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemq-cpp/src/main/activemq/core/ActiveMQConsumer.cpp
Expand Up @@ -547,7 +547,7 @@ void ActiveMQConsumer::deliverAcks()
} else if( pendingAck != NULL &&
pendingAck->getAckType() == ActiveMQConstants::ACK_TYPE_CONSUMED ) {

ack = pendingAck;
ack.swap( pendingAck );
}

if( ack != NULL ) {
Expand Down

0 comments on commit c47e4a5

Please sign in to comment.