mirror of
https://github.com/danbulant/discord.js
synced 2026-05-31 21:31:29 +00:00
Clear evals and fetches on process death
This commit is contained in:
parent
b5459a96fa
commit
c447abad60
1 changed files with 2 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue