Clear evals and fetches on process death

This commit is contained in:
Schuyler Cebulskie
2017-11-20 22:26:14 -05:00
parent b5459a96fa
commit c447abad60

View File

@@ -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));
}
}