activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r734364 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
Date Wed, 14 Jan 2009 12:19:17 GMT
Author: dejanb
Date: Wed Jan 14 04:19:15 2009
New Revision: 734364

URL: http://svn.apache.org/viewvc?rev=734364&view=rev
Log:
additional fix for https://issues.apache.org/activemq/browse/AMQ-2044

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java?rev=734364&r1=734363&r2=734364&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java
Wed Jan 14 04:19:15 2009
@@ -129,8 +129,8 @@
      * timeout was setup, then send the NULL message.
      */
     final void pullTimeout(long dispatchCounterBeforePull) {
-        if (dispatchCounterBeforePull == dispatchCounter) {
-            synchronized (pendingLock) {
+    	synchronized (pendingLock) {
+    		if (dispatchCounterBeforePull == dispatchCounter) {
                 try {
                     add(QueueMessageReference.NULL_MESSAGE);
                     dispatchPending();



Mime
View raw message