fix(Client): do not redefine _timeouts and _intervals of BaseClient (#2748)

Fixes an issue with the process permanently hanging.
This commit is contained in:
Kyra
2018-08-14 20:39:56 +02:00
committed by SpaceEEC
parent 9b5df571b3
commit 75254748b1

View File

@@ -140,20 +140,6 @@ class Client extends BaseClient {
*/
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) {
this.setInterval(this.sweepMessages.bind(this), this.options.messageSweepInterval * 1000);
}