From 828229872d3bdf9292910485d9a6348f64525487 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 27 May 2019 14:46:33 +0200 Subject: [PATCH] fix(core): update --- ts/tswatch.classes.watcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/tswatch.classes.watcher.ts b/ts/tswatch.classes.watcher.ts index 1c4a111..1f18fda 100644 --- a/ts/tswatch.classes.watcher.ts +++ b/ts/tswatch.classes.watcher.ts @@ -90,7 +90,7 @@ export class Watcher { */ public async stop() { await this.smartchokWatcher.stop(); - if (this.currentExecution) { + if (!this.currentExecution.childProcess.killed) { process.kill(-this.currentExecution.childProcess.pid); } }