[hotfix] fix error reding "once" on "downloadProcess"

This commit is contained in:
MathieuG-P
2023-06-28 21:41:48 +02:00
parent 3902ccdf72
commit f162b4009e
+1 -1
View File
@@ -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 {