mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1236414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
55fa377f2f
commit
c4c9cf2e94
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue