diff --git a/src/main/services/bs-installer.service.ts b/src/main/services/bs-installer.service.ts index f34678cb..9486643b 100644 --- a/src/main/services/bs-installer.service.ts +++ b/src/main/services/bs-installer.service.ts @@ -90,6 +90,8 @@ export class BSInstallerService{ public async downloadBsVersion(downloadInfos: DownloadInfo): Promise{ + // TODO : Can be a lot improved by using ipcV2 and Observable + if(this.downloadProcess && this.downloadProcess.connected){ throw "AlreadyDownloading"; } const {bsVersion} = downloadInfos; if(!bsVersion){ return {type: "[Error]"}; }