Fixed hanging executor

This commit is contained in:
Dunemask 2022-08-12 20:52:58 +00:00
parent 1bb588f294
commit 247894f6ad
3 changed files with 3 additions and 3 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -57,12 +57,12 @@ export default class Executor {
onClose() {
console.log("Server disconnected, terminating process.");
if (this.proc) this.proc.kill("SIGKILL");
}
onProcClose(code) {
this.socket.emit(events.JOB_CLS, code);
this.socket.emit(events.JOB_CLS, code, () => this.socket.disconnect());
console.log(`Process finished with code ${code}`);
this.socket.disconnect();
}
report(d, dType) {