Skip to content

Commit

Permalink
fix(WebSocketShard): backport error handler preservation on connectio…
Browse files Browse the repository at this point in the history
…ns (#8164)
  • Loading branch information
didinele committed Jun 23, 2022
1 parent 7e1904c commit c198e89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/websocket/WebSocketShard.js
Expand Up @@ -858,7 +858,8 @@ class WebSocketShard extends EventEmitter {
* @private
*/
_cleanupConnection() {
this.connection.onopen = this.connection.onclose = this.connection.onerror = this.connection.onmessage = null;
this.connection.onopen = this.connection.onclose = this.connection.onmessage = null;
this.connection.onerror = () => null;
}

/**
Expand Down

0 comments on commit c198e89

Please sign in to comment.