mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4328 - AMQ3274Test, org.apache.activemq.usecases.NetworkBridgeProducerFlowControlTest - sync needs to be conditional
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1448809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56cfa302cf
commit
806ec21eb6
|
@ -895,7 +895,12 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
|
||||
protected void addSubscription(DemandSubscription sub) throws IOException {
|
||||
if (sub != null) {
|
||||
localBroker.oneway(sub.getLocalInfo());
|
||||
if (isDuplex()) {
|
||||
// async vm transport, need to wait for completion
|
||||
localBroker.request(sub.getLocalInfo());
|
||||
} else {
|
||||
localBroker.oneway(sub.getLocalInfo());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue