From 3a95fff234b12a45e8166cecaeccf9c01160fc91 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 16 Oct 2008 09:57:37 +0000 Subject: [PATCH] fix intermittent failure of org.apache.activemq.usecases.MultiBrokersMultiClientsUsingTcpTest git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@705190 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/org/apache/activemq/util/MessageIdList.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java b/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java index 23c37f111b..df3bfc9802 100644 --- a/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java +++ b/activemq-core/src/test/java/org/apache/activemq/util/MessageIdList.java @@ -101,15 +101,14 @@ public class MessageIdList extends Assert implements MessageListener { 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); }