diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java index 5b96793212..10344a74f3 100755 --- a/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java @@ -147,8 +147,8 @@ public class InactivityMonitor extends TransportFilter { public void onException(IOException error) { if( monitorStarted.get() ) { stopMonitorThreads(); - getTransportListener().onException(error); } + getTransportListener().onException(error); }