File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
providers/netty/src/main/java/org/asynchttpclient/providers/netty/handler Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,8 @@ public void onClose(ChannelHandlerContext ctx) {
200200 NettyWebSocket webSocket = NettyWebSocket .class .cast (h .onCompleted ());
201201
202202 // FIXME How could this test not succeed, we just checked above that attribute is a NettyResponseFuture????
203- if (attribute != DiscardEvent .INSTANCE )
203+ LOGGER .trace ("Connection was closed abnormally (that is, with no close frame being sent)." );
204+ if (attribute != DiscardEvent .INSTANCE && webSocket != null )
204205 webSocket .close (1006 , "Connection was closed abnormally (that is, with no close frame being sent)." );
205206 } catch (Throwable t ) {
206207 LOGGER .error ("onError" , t );
You can’t perform that action at this time.
0 commit comments