fix: fix async lock property value at init
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 Apr 2023 20:57:56 +0000 (22:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 30 Apr 2023 20:57:56 +0000 (22:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/AsyncLock.ts

index 1b61532594b0af1d3148ccddcc6b0779405302b5..8bb8f519222dd1f738fdfd64cd02317c91e4a62a 100644 (file)
@@ -5,7 +5,7 @@ export enum AsyncLockType {
 
 export class AsyncLock {
   private static readonly instances = new Map<AsyncLockType, AsyncLock>();
-  private acquired = false;
+  private acquired: boolean;
   private readonly resolveQueue: ((value: void | PromiseLike<void>) => void)[];
 
   private constructor(private readonly type: AsyncLockType) {