fix(WebSocketShard): keep an error handler on connections (#8150)

This commit is contained in:
SpaceEEC
2022-06-22 20:34:11 +02:00
committed by GitHub
parent 31f658247f
commit c34c02ab8d

View File

@@ -859,7 +859,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;
}
/**