Fix massive timeout/interval memory leaks

This commit is contained in:
Schuyler Cebulskie
2016-09-19 03:49:42 -04:00
parent 6f7deba4b3
commit 7d8667694d
5 changed files with 41 additions and 28 deletions

View File

@@ -232,7 +232,7 @@ class TextBasedChannel {
const entry = this.client.user._typing.get(this.id);
entry.count--;
if (entry.count <= 0 || force) {
clearInterval(entry.interval);
this.client.clearInterval(entry.interval);
this.client.user._typing.delete(this.id);
}
}