additional fix for VMTransportWaitForTest test failure

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1425958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2012-12-26 15:47:01 +00:00
parent 428a0631d3
commit d0fb549f2c
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ public class BrokerService implements Service {
* @return boolean true if wait succeeded false if broker was not started or was stopped * @return boolean true if wait succeeded false if broker was not started or was stopped
*/ */
public boolean waitUntilStarted() { public boolean waitUntilStarted() {
boolean waitSucceeded = false; boolean waitSucceeded = isStarted();
while (!isStarted() && !stopped.get() && !waitSucceeded) { while (!isStarted() && !stopped.get() && !waitSucceeded) {
try { try {
if (startException != null) { if (startException != null) {