ARTEMIS-1317 Expire messages that got expiredAck() from OpenWire client

This fixes org.apache.activemq.JmsSendReceiveWithMessageExpirationTest
This commit is contained in:
Jiri Danek 2017-08-02 10:19:07 +02:00 committed by Clebert Suconic
parent c5c61f39eb
commit dfb181a8b2
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}
}