ARTEMIS-2457 fix non-destructive ring q test

This commit is contained in:
Justin Bertram 2019-08-26 08:30:49 -05:00 committed by Clebert Suconic
parent 34e2f40c1c
commit dde6862aed
1 changed files with 2 additions and 5 deletions

View File

@ -3514,12 +3514,9 @@ public class QueueImpl extends CriticalComponentImpl implements Queue {
queue.decDelivering(ref);
if (nonDestructive && reason == AckReason.NORMAL) {
return;
}
// this is done to tell the difference between actual acks and just a closed consumer in the non-destructive use-case
if (nonDestructive && reason == AckReason.NORMAL) {
// this is done to tell the difference between actual acks and just a closed consumer in the non-destructive use-case
ref.setInDelivery(false);
return;
}
if (reason == AckReason.EXPIRED) {