Skip to content

Commit

Permalink
fix: fixed ws disconnected state on connection end
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadzurami committed Oct 14, 2024
1 parent 686d773 commit 45a986c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/connection_protocols/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ class WebSocketConnection extends BaseConnection {
this.stream.removeAllListeners();
this.stream.on('error', () => {
});

this.stream.disconnect();
this._disconnected = true;

return;
}

this.stream.disconnect();
Expand Down

0 comments on commit 45a986c

Please sign in to comment.