Skip to content

Commit 26d39cb

Browse files
committed
Don't notify WebSocketListener with onClose(1000) when user closes the WebSocket, close AsyncHttpClient#1198
1 parent 5995bba commit 26d39cb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

client/src/main/java/org/asynchttpclient/netty/ws/NettyWebSocket.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ public boolean isOpen() {
135135
@Override
136136
public void close() {
137137
if (channel.isOpen()) {
138-
onClose(1000, "Normal closure; the connection successfully completed whatever purpose for which it was created.");
139-
listeners.clear();
140138
channel.writeAndFlush(new CloseWebSocketFrame()).addListener(ChannelFutureListener.CLOSE);
141139
}
142140
}

0 commit comments

Comments
 (0)