ARTEMIS-2650 OpenWire Browsing is not sending credits

This commit is contained in:
Clebert Suconic 2020-03-16 09:09:33 -04:00
parent 4d2b6c07bd
commit d15b3aeed6
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ public class AMQConsumer {
List<MessageReference> ackList = serverConsumer.getDeliveringReferencesBasedOnProtocol(removeReferences, first, last);
if (ack.isIndividualAck() || ack.isStandardAck() || ack.isPoisonAck()) {
if (removeReferences && (ack.isIndividualAck() || ack.isStandardAck() || ack.isPoisonAck())) {
acquireCredit(ackList.size());
} else {
acquireCredit(ack.getMessageCount());