From: Jérôme Benoit Date: Mon, 29 Apr 2024 19:49:38 +0000 (+0200) Subject: fix: only sync worker choice strategies if needed X-Git-Tag: v4.0.0~1^2~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=423f3b7a3403a81042c6f12bb42613f4967be4f1;p=poolifier.git fix: only sync worker choice strategies if needed Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 52829c28..9a7199ec 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -551,7 +551,7 @@ export abstract class AbstractPool< let requireSync = false checkValidWorkerChoiceStrategy(workerChoiceStrategy) if (workerChoiceStrategyOptions != null) { - requireSync = this.setWorkerChoiceStrategyOptions( + requireSync = !this.setWorkerChoiceStrategyOptions( workerChoiceStrategyOptions ) }