mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
fix(Client): do not redefine _timeouts and _intervals of BaseClient (#2748)
Fixes an issue with the process permanently hanging.
This commit is contained in:
@@ -140,20 +140,6 @@ class Client extends BaseClient {
|
|||||||
*/
|
*/
|
||||||
this.pings = [];
|
this.pings = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Timeouts set by {@link Client#setTimeout} that are still active
|
|
||||||
* @type {Set<Timeout>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
this._timeouts = new Set();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Intervals set by {@link Client#setInterval} that are still active
|
|
||||||
* @type {Set<Timeout>}
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
this._intervals = new Set();
|
|
||||||
|
|
||||||
if (this.options.messageSweepInterval > 0) {
|
if (this.options.messageSweepInterval > 0) {
|
||||||
this.setInterval(this.sweepMessages.bind(this), this.options.messageSweepInterval * 1000);
|
this.setInterval(this.sweepMessages.bind(this), this.options.messageSweepInterval * 1000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user