git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1236414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-01-26 22:18:59 +00:00
parent 55fa377f2f
commit c4c9cf2e94
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ public abstract class AbstractInactivityMonitor extends TransportFilter {
return; return;
} }
if (!commandSent.get() && useKeepAlive) { if (!commandSent.get() && useKeepAlive && monitorStarted.get() && !ASYNC_TASKS.isTerminating()) {
if (LOG.isTraceEnabled()) { if (LOG.isTraceEnabled()) {
LOG.trace(this + " no message sent since last write check, sending a KeepAliveInfo"); LOG.trace(this + " no message sent since last write check, sending a KeepAliveInfo");
} }
@ -178,7 +178,7 @@ public abstract class AbstractInactivityMonitor extends TransportFilter {
} }
return; return;
} }
if (!commandReceived.get()) { if (!commandReceived.get() && monitorStarted.get() && !ASYNC_TASKS.isTerminating()) {
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug("No message received since last read check for " + toString() + "! Throwing InactivityIOException."); LOG.debug("No message received since last read check for " + toString() + "! Throwing InactivityIOException.");
} }