Simplify WorkerUtils.defaultErrorHandler usage in WorkerSet
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStationWorker.ts
index 73c2cb7f71dc30678cc802a22d7d1da8b56c23d4..4f109bf5023206c826e55f880c278d576ccaafa3 100644 (file)
@@ -49,11 +49,3 @@ function startChargingStation(data: ChargingStationWorkerData): void {
   const station = new ChargingStation(data.index, data.templateFile);
   station.start();
 }
-
-process.on('uncaughtException', (err) => {
-  throw err;
-});
-
-process.on('unhandledRejection', (reason) => {
-  throw reason;
-});