mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +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() {
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue