mirror of https://github.com/apache/activemq.git
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:
parent
effc8b9b89
commit
f49675bfa2
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue