You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by de...@apache.org on 2012/12/26 16:47:01 UTC

svn commit: r1425958 - /activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java

Author: dejanb
Date: Wed Dec 26 15:47:01 2012
New Revision: 1425958

URL: http://svn.apache.org/viewvc?rev=1425958&view=rev
Log:
additional fix for VMTransportWaitForTest test failure

Modified:
    activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java

Modified: activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=1425958&r1=1425957&r2=1425958&view=diff
==============================================================================
--- activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java (original)
+++ activemq/trunk/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java Wed Dec 26 15:47:01 2012
@@ -867,7 +867,7 @@ public class BrokerService implements Se
      * @return boolean true if wait succeeded false if broker was not started or was stopped
      */
     public boolean waitUntilStarted() {
-        boolean waitSucceeded = false;
+        boolean waitSucceeded = isStarted();
         while (!isStarted() && !stopped.get() && !waitSucceeded) {
             try {
                 if (startException != null) {