activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r638603 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
Date Tue, 18 Mar 2008 22:00:19 GMT
Author: chirino
Date: Tue Mar 18 15:00:16 2008
New Revision: 638603

URL: http://svn.apache.org/viewvc?rev=638603&view=rev
Log:
opps had my logic backwards..

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java?rev=638603&r1=638602&r2=638603&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
Tue Mar 18 15:00:16 2008
@@ -153,7 +153,7 @@
             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.");
                 }



Mime
View raw message