feat: restart worker in case of uncaught error
[poolifier.git] / src / pools / thread / dynamic.ts
index 56b923c4d2cd0f4c3800aba0b24abd41f83b4799..0519873ec6d870ef0c1d08e6cb872541cf5a0865 100644 (file)
@@ -42,7 +42,7 @@ export class DynamicThreadPool<
 
   /** @inheritDoc */
   protected get full (): boolean {
-    return this.workerNodes.length === this.max
+    return this.workerNodes.length >= this.max
   }
 
   /** @inheritDoc */