mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
fix Client.destroy (#853)
_timeouts and _intervals were changed to Set objects in commit6ede7a32fda month ago. Like #844, this fix was reverted in7d04863b66(#839) without explanation and was never included in the followup rewrite in commit5e2ee2398e.
This commit is contained in:
parent
e80f06a059
commit
4bd19c94ba
1 changed files with 2 additions and 2 deletions
|
|
@ -236,8 +236,8 @@ class Client extends EventEmitter {
|
|||
destroy() {
|
||||
for (const t of this._timeouts) clearTimeout(t);
|
||||
for (const i of this._intervals) clearInterval(i);
|
||||
this._timeouts = [];
|
||||
this._intervals = [];
|
||||
this._timeouts.clear();
|
||||
this._intervals.clear();
|
||||
this.token = null;
|
||||
this.email = null;
|
||||
this.password = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue