ARTEMIS-1317 Expire messages that got expiredAck() from OpenWire client
This fixes org.apache.activemq.JmsSendReceiveWithMessageExpirationTest
This commit is contained in:
parent
c5c61f39eb
commit
dfb181a8b2
|
@ -298,8 +298,9 @@ public class AMQConsumer {
|
|||
}
|
||||
}
|
||||
if (ack.isExpiredAck()) {
|
||||
//adjust delivering count for expired messages
|
||||
this.serverConsumer.getQueue().decDelivering(ackList.size());
|
||||
for (MessageReference ref : ackList) {
|
||||
ref.getQueue().expire(ref);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue