mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix massive timeout/interval memory leaks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user