Skip to content

Commit 1468265

Browse files
committed
remove uneeded semaphore from CxInstaller.ts
1 parent 88a6161 commit 1468265

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export class CxInstaller {
1515
private cliVersion: string;
1616
private readonly resourceDirPath: string;
1717
private readonly cliDefaultVersion = '2.2.5'; // This will be used if the version file is not found. Should be updated with the latest version.
18-
private static installSemaphore = new Semaphore(1); // Semaphore with 1 slot
1918

2019
constructor(platform: string) {
2120
this.platform = platform;
@@ -48,7 +47,6 @@ export class CxInstaller {
4847

4948

5049
async downloadIfNotInstalledCLI(): Promise<void> {
51-
const [_, release] = await CxInstaller.installSemaphore.acquire();
5250
try {
5351
await fs.promises.mkdir(this.resourceDirPath, { recursive: true });
5452

@@ -76,8 +74,6 @@ export class CxInstaller {
7674
logger.info('Extracted CLI to:', this.resourceDirPath);
7775
} catch (error) {
7876
logger.error('Error during installation:', error);
79-
} finally {
80-
release();
8177
}
8278
}
8379

0 commit comments

Comments
 (0)