feat: restart worker in case of uncaught error
[poolifier.git] / src / pools / thread / fixed.ts
index 41fcee2b60c2c5a36b5f24bc35d1cdce4a03c326..816fa61a432db55b0980092bb3bf7f45818c1364 100644 (file)
@@ -103,7 +103,7 @@ export class FixedThreadPool<
 
   /** @inheritDoc */
   protected get full (): boolean {
-    return this.workerNodes.length === this.numberOfWorkers
+    return this.workerNodes.length >= this.numberOfWorkers
   }
 
   /** @inheritDoc */