mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03: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.emit('death', this.process);
|
||||||
this.ready = false;
|
this.ready = false;
|
||||||
this.process = null;
|
this.process = null;
|
||||||
|
this._evals.clear();
|
||||||
|
this._fetches.clear();
|
||||||
if (respawn) this.spawn().catch(err => this.emit('error', err));
|
if (respawn) this.spawn().catch(err => this.emit('error', err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user