Skip to content

Commit

Permalink
GH-2741: SMLC: Release consumer after its main loop
Browse files Browse the repository at this point in the history
Fixes: #2741

Apparently the consumer might be in the cancelled state,
so `this.activeObjectCounter.release(this);` in the `BlockingQueueConsumer.nextMessage()` is not reachable.

(cherry picked from commit 52b68ba)
  • Loading branch information
artembilan authored and spring-builds committed Jun 17, 2024
1 parent cbfccb4 commit 3e8fee1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,7 @@ public void run() { // NOSONAR - line count
}
}
finally {
SimpleMessageListenerContainer.this.cancellationLock.release(this.consumer);
if (getTransactionManager() != null) {
ConsumerChannelRegistry.unRegisterConsumerChannel();
}
Expand Down

0 comments on commit 3e8fee1

Please sign in to comment.