Fixed a bug where a wrong channel is closed on connection failure
This commit is contained in:
parent
ad8bb7eaf6
commit
666f57a35e
@ -80,7 +80,7 @@ public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler {
|
|||||||
inboundChannel.setReadable(true);
|
inboundChannel.setReadable(true);
|
||||||
} else {
|
} else {
|
||||||
// Close the connection if the connection attempt has failed.
|
// Close the connection if the connection attempt has failed.
|
||||||
future.getChannel().close();
|
inboundChannel.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user