Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy A. Bish committed May 24, 2012
1 parent 4136de1 commit a2a1324
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions activemq-cpp/src/main/activemq/state/SessionState.cpp
Expand Up @@ -69,11 +69,10 @@ Pointer<ProducerState> SessionState::removeProducer( const Pointer<ProducerId>&

Pointer<ProducerState> producerState = producers.remove(id);
if (producerState != NULL) {
Pointer<TransactionState> txState = producerState->getTransactionState();
if (txState != NULL) {
Pointer<TransactionState> transactionState = producerState->getTransactionState();
if (transactionState != NULL) {
producerState->setTransactionState(Pointer<TransactionState>());
// allow the transaction to recreate dependent producer on recovery
producerState->getTransactionState()->addProducerState(producerState);
transactionState->addProducerState(producerState);
}
}

Expand Down

0 comments on commit a2a1324

Please sign in to comment.