Fixed silly NPE in SslHandler

This commit is contained in:
Trustin Lee 2008-08-20 07:06:10 +00:00
parent 66f7d5a800
commit 07f17cfd4f

View File

@ -503,7 +503,7 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
handshaking = false; handshaking = false;
handshaken = true; handshaken = true;
if (handshakeFuture != null) { if (handshakeFuture == null) {
handshakeFuture = newHandshakeFuture(channel); handshakeFuture = newHandshakeFuture(channel);
} }
} }
@ -515,7 +515,7 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
handshaking = false; handshaking = false;
handshaken = false; handshaken = false;
if (handshakeFuture != null) { if (handshakeFuture == null) {
handshakeFuture = newHandshakeFuture(channel); handshakeFuture = newHandshakeFuture(channel);
} }
} }