Fixed a bug where a wrong channel is closed on connection failure

This commit is contained in:
Trustin Lee 2009-06-12 08:42:44 +00:00
parent ad8bb7eaf6
commit 666f57a35e

View File

@ -80,7 +80,7 @@ public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler {
inboundChannel.setReadable(true);
} else {
// Close the connection if the connection attempt has failed.
future.getChannel().close();
inboundChannel.close();
}
}
});