Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed NIO Bug

Fixed java.nio.channels.CancelledKeyException
  • Loading branch information...
commit 40ef19a72e706b45468b26c53cd927a4fe42d100 1 parent de2f94d
@ctasada ctasada authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/java/voldemort/utils/SelectorManager.java
View
3  src/java/voldemort/utils/SelectorManager.java
@@ -188,7 +188,8 @@ public void run() {
SelectionKey selectionKey = i.next();
i.remove();
- if(selectionKey.isReadable() || selectionKey.isWritable()) {
+ if(selectionKey.isValid()
+ && (selectionKey.isReadable() || selectionKey.isWritable())) {
Runnable worker = (Runnable) selectionKey.attachment();
worker.run();
}
Please sign in to comment.
Something went wrong with that request. Please try again.