diff --git a/ext/nio4r/org/nio4r/Selector.java b/ext/nio4r/org/nio4r/Selector.java index b959b16..86a3035 100644 --- a/ext/nio4r/org/nio4r/Selector.java +++ b/ext/nio4r/org/nio4r/Selector.java @@ -208,13 +208,7 @@ public synchronized IRubyObject select(ThreadContext context, IRubyObject timeou Iterator selectedKeys = this.selector.selectedKeys().iterator(); while(selectedKeys.hasNext()) { SelectionKey key = (SelectionKey)selectedKeys.next(); - try { - processKey(key); - } catch(CancelledKeyException ie) { - continue; - // TODO: what to do? - //throw runtime.newIOError(ie.getLocalizedMessage()); - } + processKey(key); selectedKeys.remove();