activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1417333 - /activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java
Date Wed, 05 Dec 2012 09:37:37 GMT
Author: dejanb
Date: Wed Dec  5 09:37:33 2012
New Revision: 1417333

URL: http://svn.apache.org/viewvc?rev=1417333&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4181 - don't let queue refs go negative

Modified:
    activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java

Modified: activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java?rev=1417333&r1=1417332&r2=1417333&view=diff
==============================================================================
--- activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java
(original)
+++ activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/region/QueueBrowserSubscription.java
Wed Dec  5 09:37:33 2012
@@ -82,7 +82,9 @@ public class QueueBrowserSubscription ex
     }
 
     synchronized public void decrementQueueRef() throws Exception {
-        queueRefs--;
+        if (queueRefs > 0) {
+            queueRefs--;
+        }
         checkDone();
     }
 



Mime
View raw message