diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java index 097dfa5ff9..af37bdc438 100755 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java @@ -132,7 +132,7 @@ public class Queue extends BaseDestination implements Task, UsageListener, Index private boolean allConsumersExclusiveByDefault = false; private final AtomicBoolean started = new AtomicBoolean(); - private boolean resetNeeded; + private volatile boolean resetNeeded; private final Runnable sendMessagesWaitingForSpaceTask = new Runnable() { @Override