[#1299] Make sure a handshake error will not trigger fireExceptionCaught two times
This commit is contained in:
parent
56c34214f8
commit
1e380851bd
@ -1541,9 +1541,7 @@ public class SslHandler extends FrameDecoder
|
||||
handshake().addListener(new ChannelFutureListener() {
|
||||
|
||||
public void operationComplete(ChannelFuture future) throws Exception {
|
||||
if (!future.isSuccess()) {
|
||||
fireExceptionCaught(future.getChannel(), future.getCause());
|
||||
} else {
|
||||
if (future.isSuccess()) {
|
||||
// Send the event upstream after the handshake was completed without an error.
|
||||
//
|
||||
// See https://github.com/netty/netty/issues/358
|
||||
|
Loading…
Reference in New Issue
Block a user