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
This commit is contained in:
Gary Tully 2008-10-16 09:57:37 +00:00
parent 8e06b20b0a
commit 3a95fff234
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}