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 14:01:30 +09:00
parent 0850449b09
commit 01c45650aa

View File

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