Fixed hanging executor
This commit is contained in:
parent
1bb588f294
commit
247894f6ad
3 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue