X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FStationWorker.ts;h=31452ce0149225884e64d92943625fe775e0102a;hb=aa8b492ae49c88a4f26d1c2a62463e46564bf355;hp=1073fcab94fa77fe2babf41ad3fd7aabcbb8e6b5;hpb=abbd09af37b3815bb04f2ef32b91ecb89ba2e1af;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/StationWorker.ts b/src/charging-station/StationWorker.ts index 1073fcab..31452ce0 100644 --- a/src/charging-station/StationWorker.ts +++ b/src/charging-station/StationWorker.ts @@ -9,7 +9,7 @@ import Utils from '../utils/Utils'; // Conditionally export ThreadWorker instance for pool usage export let threadWorker; if (Utils.workerPoolInUse()) { - threadWorker = new ThreadWorker(startChargingStation, { maxInactiveTime: Constants.WORKER_POOL_MAX_INACTIVE_TIME, async: false }); + threadWorker = new ThreadWorker(startChargingStation, { maxInactiveTime: Constants.WORKER_POOL_MAX_INACTIVE_TIME, async: false }); } if (!isMainThread) {