From 634a52a4a2ec5301d09cb07ee23adea3b1973f2b Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 15 May 2009 12:02:22 +0000 Subject: [PATCH] resolve https://issues.apache.org/activemq/browse/AMQ-2253 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@775094 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/transport/nio/SelectorSelection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java b/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java index 1e8b9b6032..681b5df77c 100644 --- a/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java +++ b/activemq-core/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java @@ -49,7 +49,9 @@ public final class SelectorSelection { } public void disable() { - key.interestOps(0); + if (key.isValid()) { + key.interestOps(0); + } } public void close() {