activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r638922 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/InactivityMonitor.java
Date Wed, 19 Mar 2008 16:27:02 GMT
Author: rajdavies
Date: Wed Mar 19 09:26:53 2008
New Revision: 638922

URL: http://svn.apache.org/viewvc?rev=638922&view=rev
Log:
use compareAndSet() in onException

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=638922&r1=638921&r2=638922&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
Wed Mar 19 09:26:53 2008
@@ -246,7 +246,7 @@
 
     public void onException(IOException error) {
         closeDown();
-        if (!failed.getAndSet(true)) {
+        if (!failed.compareAndSet(false,true)) {
             transportListener.onException(error);
         }
     }



Mime
View raw message