We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1904c commit c198e89Copy full SHA for c198e89
src/client/websocket/WebSocketShard.js
@@ -858,7 +858,8 @@ class WebSocketShard extends EventEmitter {
858
* @private
859
*/
860
_cleanupConnection() {
861
- this.connection.onopen = this.connection.onclose = this.connection.onerror = this.connection.onmessage = null;
+ this.connection.onopen = this.connection.onclose = this.connection.onmessage = null;
862
+ this.connection.onerror = () => null;
863
}
864
865
/**
0 commit comments