git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 09:54:28 +00:00
parent f1b6362ded
commit 3eb06105d3
1 changed files with 3 additions and 1 deletions

View File

@ -662,7 +662,9 @@ public class ActiveMQMessageConsumer implements MessageAvailableConsumer, StatsC
}
}
}
deliveredMessages.clear();
synchronized(deliveredMessages) {
deliveredMessages.clear();
}
List<MessageDispatch> list = unconsumedMessages.removeAll();
if (!this.info.isBrowser()) {
for (MessageDispatch old : list) {