Skip to content

Commit

Permalink
fix Client.destroy
Browse files Browse the repository at this point in the history
_timeouts and _intervals were changed to Set objects in
commit 6ede7a3 a month ago.

Like #844, this fix was reverted in 7d04863 (#839)
without explanation and was never included in the followup rewrite in
commit 5e2ee23.
  • Loading branch information
isonmad committed Oct 27, 2016
1 parent e80f06a commit 7a08b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/Client.js
Expand Up @@ -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;
Expand Down

0 comments on commit 7a08b55

Please sign in to comment.