From: Jérôme Benoit Date: Sat, 10 Jun 2023 23:41:07 +0000 (+0200) Subject: refactor: merge worker error handlers into one X-Git-Tag: v2.6.2~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c68f6cd852e8399430da0537d120a6ab1ea68e3;p=poolifier.git refactor: merge worker error handlers into one Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index f64e9ea4..db7c83ee 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -687,8 +687,6 @@ export abstract class AbstractPool< if (this.emitter != null) { this.emitter.emit(PoolEvents.error, error) } - }) - worker.on('error', () => { if (this.opts.restartWorkerOnError === true) { this.createAndSetupWorker() }