[#2164] Only reregister SelectionKeys that are still valid
This commit is contained in:
parent
9f7a9077d6
commit
80ed147652
@ -253,7 +253,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
|
||||
for (SelectionKey key: oldSelector.keys()) {
|
||||
Object a = key.attachment();
|
||||
try {
|
||||
if (key.channel().keyFor(newSelector) != null) {
|
||||
if (!key.isValid() || key.channel().keyFor(newSelector) != null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user