From: Jérôme Benoit Date: Sun, 30 Apr 2023 20:57:56 +0000 (+0200) Subject: fix: fix async lock property value at init X-Git-Tag: v1.2.12~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7e0bf360b5f927c14f2e309be297883dbd547237;p=e-mobility-charging-stations-simulator.git fix: fix async lock property value at init Signed-off-by: Jérôme Benoit --- 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) {