opps had my logic backwards..

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@638603 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2008-03-18 22:00:16 +00:00
parent 6b33749b17
commit 8de8d0b37e
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class InactivityMonitor extends TransportFilter {
return;
}
if (!commandReceived.get()) {
if( inactive.getAndSet(false) ) {
if( !inactive.getAndSet(true) ) {
if (LOG.isDebugEnabled()) {
LOG.debug("No message received since last read check for " + toString() + "! Throwing InactivityIOException.");
}