From 2ab6e4b5b072fb2b6f954db375f4d5692e1282ab Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 7 Aug 2009 11:21:39 +0000 Subject: [PATCH] Another fix for NETTY-206 Unnecessary exception log on early disconnection --- .../netty/channel/socket/nio/NioClientSocketPipelineSink.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/nio/NioClientSocketPipelineSink.java b/src/main/java/org/jboss/netty/channel/socket/nio/NioClientSocketPipelineSink.java index 7053d8fb8c..c134cd1d4b 100644 --- a/src/main/java/org/jboss/netty/channel/socket/nio/NioClientSocketPipelineSink.java +++ b/src/main/java/org/jboss/netty/channel/socket/nio/NioClientSocketPipelineSink.java @@ -379,8 +379,7 @@ class NioClientSocketPipelineSink extends AbstractChannelSink { channel.socket.register( boss.selector, SelectionKey.OP_CONNECT, channel); } catch (ClosedChannelException e) { - throw new ChannelException( - "Failed to register a socket to the selector.", e); + NioWorker.close(channel, succeededFuture(channel)); } } }