https://issues.apache.org/jira/browse/AMQ-3805 - fix up unit test regressions with java.util.ConcurrentModificationException due to dispatch no longer being copy on write, shows up need to use iterator in message expiry case

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1328724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-04-21 18:58:09 +00:00
parent 6b4d077bdf
commit fc4f01cf5d
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ public abstract class PrefetchSubscription extends AbstractSubscription {
if (broker.isExpired(node)) {
node.getRegionDestination().messageExpired(context, this, node);
}
dispatched.remove(node);
iter.remove();
node.getRegionDestination().getDestinationStatistics().getInflight().decrement();
}
if (ack.getLastMessageId().equals(node.getMessageId())) {