repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix overrides handling for dependencies
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ChargingStationWorker.ts
diff --git
a/src/charging-station/ChargingStationWorker.ts
b/src/charging-station/ChargingStationWorker.ts
index 0ae95a618913e724eaab7c0dd8d509d4590b0e8c..24ee468c0a5cc1244cd52890fc279d07fde70df7 100644
(file)
--- a/
src/charging-station/ChargingStationWorker.ts
+++ b/
src/charging-station/ChargingStationWorker.ts
@@
-6,7
+6,7
@@
import { ThreadWorker } from 'poolifier';
import { ChargingStation } from './ChargingStation';
import type { ChargingStationWorkerData } from '../types';
import { ChargingStation } from './ChargingStation';
import type { ChargingStationWorkerData } from '../types';
-import { Configuration
, Utils
} from '../utils';
+import { Configuration } from '../utils';
import { WorkerConstants, type WorkerMessage, WorkerMessageEvents } from '../worker';
/**
import { WorkerConstants, type WorkerMessage, WorkerMessageEvents } from '../worker';
/**
@@
-40,7
+40,7
@@
if (Configuration.workerPoolInUse()) {
} else {
// Add message listener to start charging station from main thread
addMessageListener();
} else {
// Add message listener to start charging station from main thread
addMessageListener();
- if (
Utils.isUndefined(workerData) === false
) {
+ if (
workerData !== undefined
) {
startChargingStation(workerData as ChargingStationWorkerData);
}
}
startChargingStation(workerData as ChargingStationWorkerData);
}
}