Add a missing close(SelectionKey) call

* Without calling close(SelectionKey), the client boss loop can fall
into an infinite loop.
This commit is contained in:
Trustin Lee 2011-11-23 13:58:52 +09:00
parent 0da39901c8
commit 2a9c5efe8f

View File

@ -376,6 +376,7 @@ class NioClientSocketPipelineSink extends AbstractChannelSink {
ConnectException cause = null;
for (SelectionKey k: keys) {
if (!k.isValid()) {
close(k);
continue;
}