From 75254748b1ca05bf6e3e2ae571bc7e2e4b6b2c16 Mon Sep 17 00:00:00 2001 From: Kyra Date: Tue, 14 Aug 2018 20:39:56 +0200 Subject: [PATCH] fix(Client): do not redefine _timeouts and _intervals of BaseClient (#2748) Fixes an issue with the process permanently hanging. --- src/client/Client.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/client/Client.js b/src/client/Client.js index a193587bd..49a91f389 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -140,20 +140,6 @@ class Client extends BaseClient { */ this.pings = []; - /** - * Timeouts set by {@link Client#setTimeout} that are still active - * @type {Set} - * @private - */ - this._timeouts = new Set(); - - /** - * Intervals set by {@link Client#setInterval} that are still active - * @type {Set} - * @private - */ - this._intervals = new Set(); - if (this.options.messageSweepInterval > 0) { this.setInterval(this.sweepMessages.bind(this), this.options.messageSweepInterval * 1000); }