mirror of https://github.com/apache/activemq.git
Bad logic was not propagating the transport exception up.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@649658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54a93378ac
commit
c382b5048d
|
@ -239,9 +239,9 @@ public class InactivityMonitor extends TransportFilter {
|
|||
}
|
||||
|
||||
public void onException(IOException error) {
|
||||
if (!failed.compareAndSet(false,true)) {
|
||||
stopMonitorThreads();
|
||||
transportListener.onException(error);
|
||||
if (failed.compareAndSet(false, true)) {
|
||||
stopMonitorThreads();
|
||||
transportListener.onException(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue