[#1299] Make sure a handshake error will not trigger fireExceptionCaught two times

This commit is contained in:
Norman Maurer 2013-05-12 13:36:38 +02:00
parent 56c34214f8
commit 1e380851bd

View File

@ -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