From 3596f3706f0fa1b55d03a17da5f4653b162e44e5 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 18 Nov 2010 13:26:33 +0000 Subject: [PATCH] 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 --- .../src/main/java/org/apache/activemq/ConnectionAudit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/ConnectionAudit.java b/activemq-core/src/main/java/org/apache/activemq/ConnectionAudit.java index 8ff4b95754..d07b92b141 100644 --- a/activemq-core/src/main/java/org/apache/activemq/ConnectionAudit.java +++ b/activemq-core/src/main/java/org/apache/activemq/ConnectionAudit.java @@ -64,7 +64,7 @@ class ConnectionAudit { return false; } - protected void rollbackDuplicate(ActiveMQDispatcher dispatcher, Message message) { + protected synchronized void rollbackDuplicate(ActiveMQDispatcher dispatcher, Message message) { if (checkForDuplicates && message != null) { ActiveMQDestination destination = message.getDestination(); if (destination != null) {