From 2fa0b83e7345709873727ff695c4c2e9f93a7647 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 27 Jun 2014 21:35:54 +0200 Subject: [PATCH] Cleanup comment / code --- .../src/main/java/io/netty/channel/nio/NioEventLoop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/nio/NioEventLoop.java b/transport/src/main/java/io/netty/channel/nio/NioEventLoop.java index 8543a1ee7b..79a024e8ed 100644 --- a/transport/src/main/java/io/netty/channel/nio/NioEventLoop.java +++ b/transport/src/main/java/io/netty/channel/nio/NioEventLoop.java @@ -473,7 +473,7 @@ public final class NioEventLoop extends SingleThreadEventLoop { } if (needsToSelectAgain) { - // null out entrys in the array to allow to have it GC'ed once the Channel close + // null out entries in the array to allow to have it GC'ed once the Channel close // See https://github.com/netty/netty/issues/2363 for (;;) { if (selectedKeys[i] == null) { @@ -628,7 +628,7 @@ public final class NioEventLoop extends SingleThreadEventLoop { // the task queue has a pending task. break; } - if (selectedKeys == 0 && Thread.interrupted()) { + if (Thread.interrupted()) { // Thread was interrupted so reset selected keys and break so we not run into a busy loop. // As this is most likely a bug in the handler of the user or it's client library we will // also log it.