Fixed silly NPE in SslHandler
This commit is contained in:
parent
66f7d5a800
commit
07f17cfd4f
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user