Cleanup workers handling classes.
[e-mobility-charging-stations-simulator.git] / src / charging-station / StationWorker.ts
index a948a1b4bbb1bfc1572ffe3dbac8a47d6e6149bc..513265e2bb0679323adbbca9c2959c20d94b04be 100644 (file)
@@ -11,7 +11,6 @@ if (!isMainThread) {
 }
 
 function addListener() {
-  parentPort.setMaxListeners(Constants.MAX_LISTENERS);
   parentPort.on('message', (e) => {
     if (e.id === Constants.START_WORKER_ELEMENT) {
       startChargingStation(e.workerData);