mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 04:31:05 +00:00
silly hydar
This commit is contained in:
parent
b8018d4b6d
commit
c48f042785
1 changed files with 1 additions and 1 deletions
|
|
@ -368,7 +368,7 @@ class WebSocketConnection extends EventEmitter {
|
||||||
* @param {CloseEvent} event Close event that was received
|
* @param {CloseEvent} event Close event that was received
|
||||||
*/
|
*/
|
||||||
onClose(event) {
|
onClose(event) {
|
||||||
this.debug(`${this.expectingClose ? 'Server' : 'Client'} closed WebSocket connection: ${event.code}`);
|
this.debug(`${this.expectingClose ? 'Client' : 'Server'} closed the WebSocket connection: ${event.code}`);
|
||||||
this.closeSequence = this.sequence;
|
this.closeSequence = this.sequence;
|
||||||
// Reset the state before trying to fix anything
|
// Reset the state before trying to fix anything
|
||||||
this.emit('close', event);
|
this.emit('close', event);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue