From 3cdfe95608c99a6108149c92e7148d8adf9de088 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 bd7673a953..55b7d004e3 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.