activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r775094 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java
Date Fri, 15 May 2009 12:02:22 GMT
Author: gtully
Date: Fri May 15 12:02:22 2009
New Revision: 775094

URL: http://svn.apache.org/viewvc?rev=775094&view=rev
Log:
resolve https://issues.apache.org/activemq/browse/AMQ-2253

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java?rev=775094&r1=775093&r2=775094&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java
Fri May 15 12:02:22 2009
@@ -49,7 +49,9 @@
     }
 
     public void disable() {
-        key.interestOps(0);
+        if (key.isValid()) {
+            key.interestOps(0);
+        }
     }
 
     public void close() {



Mime
View raw message