From: Jérôme Benoit Date: Sat, 23 Mar 2024 00:10:45 +0000 (+0100) Subject: refactor: cleanup worker set message handling code X-Git-Tag: v1.3.1~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ccf11189ed15c2e4706eac4b29dee2f972c68db7;p=e-mobility-charging-stations-simulator.git refactor: cleanup worker set message handling code Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index 1e3000cc..80f502c2 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -165,7 +165,7 @@ export class WorkerSet extends Worke this.emitter?.emit(WorkerSetEvents.elementError, data) reject(data) } - this.promiseResponseMap.delete(message.uuid) + this.promiseResponseMap.delete(uuid) } }) worker.on('error', this.workerOptions.poolOptions?.errorHandler ?? EMPTY_FUNCTION)