resolve potential concurrent mod of LinkedHashMap, reads can modify as map is access ordered

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1036448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2010-11-18 13:26:33 +00:00
parent eb034b4bc9
commit 3596f3706f
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class ConnectionAudit {
return false; return false;
} }
protected void rollbackDuplicate(ActiveMQDispatcher dispatcher, Message message) { protected synchronized void rollbackDuplicate(ActiveMQDispatcher dispatcher, Message message) {
if (checkForDuplicates && message != null) { if (checkForDuplicates && message != null) {
ActiveMQDestination destination = message.getDestination(); ActiveMQDestination destination = message.getDestination();
if (destination != null) { if (destination != null) {