activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r705190 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java
Date Thu, 16 Oct 2008 09:57:38 GMT
Author: gtully
Date: Thu Oct 16 02:57:37 2008
New Revision: 705190

URL: http://svn.apache.org/viewvc?rev=705190&view=rev
Log:
fix intermittent failure of org.apache.activemq.usecases.MultiBrokersMultiClientsUsingTcpTest

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java?rev=705190&r1=705189&r2=705190&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java
Thu Oct 16 02:57:37 2008
@@ -101,15 +101,14 @@
     public void onMessage(Message message) {
         String id = null;
         try {
-            if (countDownLatch != null) {
-                countDownLatch.countDown();
-            }
-
             id = message.getJMSMessageID();
             synchronized (semaphore) {
                 messageIds.add(id);
                 semaphore.notifyAll();
             }
+            if (countDownLatch != null) {
+                countDownLatch.countDown();
+            }
             if (LOG.isDebugEnabled()) {
                 LOG.debug("Received message: " + message);
             }



Mime
View raw message