[#857] Correctly handle CancelledKeyException
This commit is contained in:
parent
5adb37de3d
commit
5a4a52a817
@ -400,7 +400,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
||||
unsafe.finishConnect();
|
||||
}
|
||||
} catch (CancelledKeyException e) {
|
||||
if (readyOps != 1 && (readyOps & SelectionKey.OP_WRITE) != 0) {
|
||||
if (readyOps != -1 && (readyOps & SelectionKey.OP_WRITE) != 0) {
|
||||
unregisterWritableTasks(ch);
|
||||
}
|
||||
unsafe.close(unsafe.voidFuture());
|
||||
|
Loading…
Reference in New Issue
Block a user