Fixed issue: NETTY-205 Unnecessary exception log on early disconnection

* Do not log ClosedChannelException in RegisterTask.run()
This commit is contained in:
Trustin Lee 2009-08-06 11:09:54 +00:00
parent 68b54c9dde
commit 8a35a9aad3

View File

@ -751,8 +751,10 @@ class NioWorker implements Runnable {
future.setFailure(e);
}
close(channel, succeededFuture(channel));
throw new ChannelException(
"Failed to register a socket to the selector.", e);
if (!(e instanceof ClosedChannelException)) {
throw new ChannelException(
"Failed to register a socket to the selector.", e);
}
}
if (!server) {