fix: fix worker node removal handling in worker choice strategies
[poolifier.git] / src / pools / selection-strategies / round-robin-worker-choice-strategy.ts
index 53f3ba4fd36c0ee70f0918889e5a5edd9708645b..83126d97847887d9a079cc6f875077b1494729c9 100644 (file)
@@ -52,6 +52,7 @@ export class RoundRobinWorkerChoiceStrategy<
   public remove (workerNodeKey: number): boolean {
     if (this.pool.workerNodes.length === 0) {
       this.reset()
+      return true
     }
     if (
       this.nextWorkerNodeKey === workerNodeKey &&