mirror of https://github.com/apache/activemq.git
Attempt to resolve high CPU usage after error by ensuring that the transport is disposed along with the fire of the local error.
This commit is contained in:
parent
b52796f794
commit
a3c8bee1f0
|
@ -348,7 +348,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
try {
|
||||
remoteBrokerInfo = futureRemoteBrokerInfo.get();
|
||||
if (remoteBrokerInfo == null) {
|
||||
fireBridgeFailed(new Throwable("remoteBrokerInfo is null"));
|
||||
serviceLocalException(new Throwable("remoteBrokerInfo is null"));
|
||||
return;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@ -359,7 +359,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
try {
|
||||
localBrokerInfo = futureLocalBrokerInfo.get();
|
||||
if (localBrokerInfo == null) {
|
||||
fireBridgeFailed(new Throwable("localBrokerInfo is null"));
|
||||
serviceLocalException(new Throwable("localBrokerInfo is null"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue