mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Fix #1095
This commit is contained in:
parent
565c640bc6
commit
f4724d61b2
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ class WebSocketManager extends EventEmitter {
|
|||
}
|
||||
|
||||
destroy() {
|
||||
this.ws.close(1000);
|
||||
if (this.ws) this.ws.close(1000);
|
||||
this._queue = [];
|
||||
this.status = Constants.Status.IDLE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue