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) {