From 7e0bf360b5f927c14f2e309be297883dbd547237 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 30 Apr 2023 22:57:56 +0200 Subject: [PATCH] fix: fix async lock property value at init MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/utils/AsyncLock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/AsyncLock.ts b/src/utils/AsyncLock.ts index 1b615325..8bb8f519 100644 --- a/src/utils/AsyncLock.ts +++ b/src/utils/AsyncLock.ts @@ -5,7 +5,7 @@ export enum AsyncLockType { export class AsyncLock { private static readonly instances = new Map(); - private acquired = false; + private acquired: boolean; private readonly resolveQueue: ((value: void | PromiseLike) => void)[]; private constructor(private readonly type: AsyncLockType) { -- 2.34.1