[hornetq-commits] JBoss hornetq SVN: r10920 - branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/client/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jul 5 10:56:51 EDT 2011
Author: borges
Date: 2011-07-05 10:56:51 -0400 (Tue, 05 Jul 2011)
New Revision: 10920
Modified:
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java
Log:
Check for desired result (receivedTopology) and not for control variable (toWait <=0)
Modified: branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java
===================================================================
--- branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java 2011-07-05 14:56:11 UTC (rev 10919)
+++ branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/client/impl/ServerLocatorImpl.java 2011-07-05 14:56:51 UTC (rev 10920)
@@ -663,7 +663,7 @@
start = now;
}
- if (toWait <= 0)
+ if (!receivedTopology)
{
throw new HornetQException(HornetQException.CONNECTION_TIMEDOUT,
"Timed out waiting to receive cluster topology");
More information about the hornetq-commits
mailing list