fix(core): update

This commit is contained in:
2019-05-27 15:38:07 +02:00
parent 1f0c1964dd
commit 99ec82ab55
3 changed files with 10 additions and 10 deletions

View File

@ -90,7 +90,7 @@ export class Watcher {
*/
public async stop() {
await this.smartchokWatcher.stop();
if (!this.currentExecution.childProcess.killed) {
if (this.currentExecution && !this.currentExecution.childProcess.killed) {
process.kill(-this.currentExecution.childProcess.pid);
}
}