https://issues.apache.org/jira/browse/AMQ-3887 - do safeWaitUntilStarted outside of the synchronized block as deadlocks are possible

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1390473 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2012-09-26 13:29:16 +00:00
parent effc8b9b89
commit f49675bfa2
1 changed files with 6 additions and 6 deletions

View File

@ -273,6 +273,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
} }
startedLatch.countDown(); startedLatch.countDown();
localStartedLatch.countDown(); localStartedLatch.countDown();
}
safeWaitUntilStarted(); safeWaitUntilStarted();
@ -283,7 +284,6 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
} }
} }
} }
}
protected void startRemoteBridge() throws Exception { protected void startRemoteBridge() throws Exception {
if (remoteBridgeStarted.compareAndSet(false, true)) { if (remoteBridgeStarted.compareAndSet(false, true)) {