mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[hotfix] fix error reding "once" on "downloadProcess"
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user