From 75f8f6970b29b5f5295dde59cad0a5a6ace167ed Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Wed, 5 Dec 2012 09:37:33 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-4181 - don't let queue refs go negative git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1417333 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/broker/region/QueueBrowserSubscription.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java b/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java index 03c091b0fc..d8d5c763d5 100755 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java @@ -82,7 +82,9 @@ public class QueueBrowserSubscription extends QueueSubscription { } synchronized public void decrementQueueRef() throws Exception { - queueRefs--; + if (queueRefs > 0) { + queueRefs--; + } checkDone(); }