[#921] Fix NPE which can be thrown on bad-timing when using WebSocketClientHandshaker07
This commit is contained in:
parent
5bd8b41a58
commit
ec5ad7b22c
@ -223,7 +223,6 @@ public class WebSocketClientHandshaker07 extends WebSocketClientHandshaker {
|
|||||||
setHandshakeComplete();
|
setHandshakeComplete();
|
||||||
|
|
||||||
ChannelPipeline p = channel.pipeline();
|
ChannelPipeline p = channel.pipeline();
|
||||||
p.remove(HttpRequestEncoder.class);
|
|
||||||
p.get(HttpResponseDecoder.class).replace(
|
p.get(HttpResponseDecoder.class).replace(
|
||||||
"ws-decoder",
|
"ws-decoder",
|
||||||
new WebSocket07FrameDecoder(false, allowExtensions, getMaxFramePayloadLength()));
|
new WebSocket07FrameDecoder(false, allowExtensions, getMaxFramePayloadLength()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user