mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
Fix #1095
This commit is contained in:
@@ -155,7 +155,7 @@ class WebSocketManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
this.ws.close(1000);
|
if (this.ws) this.ws.close(1000);
|
||||||
this._queue = [];
|
this._queue = [];
|
||||||
this.status = Constants.Status.IDLE;
|
this.status = Constants.Status.IDLE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user