activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r646248 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
Date Wed, 09 Apr 2008 09:54:37 GMT
Author: rajdavies
Date: Wed Apr  9 02:54:28 2008
New Revision: 646248

URL: http://svn.apache.org/viewvc?rev=646248&view=rev
Log:
Apply patch for https://issues.apache.org/activemq/browse/AMQ-1631

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java?rev=646248&r1=646247&r2=646248&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQMessageConsumer.java
Wed Apr  9 02:54:28 2008
@@ -662,7 +662,9 @@
                     }
                 }
             }
-            deliveredMessages.clear();
+            synchronized(deliveredMessages) {
+                deliveredMessages.clear();
+            }
             List<MessageDispatch> list = unconsumedMessages.removeAll();
             if (!this.info.isBrowser()) {
                 for (MessageDispatch old : list) {



Mime
View raw message