X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworker%2FWorkerSet.ts;h=1da58e9ec0c81d78cde805217c293d529ecc584c;hb=8eb3b688c4b6fb3e946f38d474a5125caf1d056a;hp=956d97de0f07b54f0ce627f4620642205963de2a;hpb=8114d10e3893e96bb725ce2fca9744429ee4b75b;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index 956d97de..1da58e9e 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -96,9 +96,7 @@ export default class WorkerSet extends WorkerAbstract { /* This is intentional */ }); }); - worker.on('error', () => { - /* This is intentional */ - }); + worker.on('error', WorkerUtils.defaultErrorHandler); worker.on('exit', (code) => { WorkerUtils.defaultExitHandler(code); this.workerSet.delete(this.getWorkerSetElementByWorker(worker));