ARTEMIS-2650 OpenWire Browsing is not sending credits
This commit is contained in:
parent
4d2b6c07bd
commit
d15b3aeed6
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue