mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Clear evals and fetches on process death
This commit is contained in:
@@ -291,6 +291,8 @@ class Shard extends EventEmitter {
|
||||
this.emit('death', this.process);
|
||||
this.ready = false;
|
||||
this.process = null;
|
||||
this._evals.clear();
|
||||
this._fetches.clear();
|
||||
if (respawn) this.spawn().catch(err => this.emit('error', err));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user