From f162b4009eb71a6749858372a3008ccf95350f73 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Wed, 28 Jun 2023 21:41:48 +0200 Subject: [PATCH] [hotfix] fix error reding "once" on "downloadProcess" --- src/main/services/bs-installer.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/bs-installer.service.ts b/src/main/services/bs-installer.service.ts index 3c38aa81..68ce0318 100644 --- a/src/main/services/bs-installer.service.ts +++ b/src/main/services/bs-installer.service.ts @@ -66,7 +66,7 @@ export class BSInstallerService{ return new Promise(resolve => { if(this.downloadProcess?.killed && !this.downloadProcess?.pid){ return resolve(false); } - this.downloadProcess.once('exit', () => resolve(true)); + this.downloadProcess?.once('exit', () => resolve(true)); if (process.platform === 'win32') { ctrlc(this.downloadProcess.pid); } else {