X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=0a2d0f3879fc6ab44129608fec6d9c6624cd4c1a;hb=ffcbbad84f63b8a77f2b1a08f82deef5430f646e;hp=8b8c5185772dbea59bc0d22b2e1cb90b9383d507;hpb=ed6dd37f9e137cf659523d9d792f0171eedcb8ed;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index 8b8c5185..0a2d0f38 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -41,6 +41,6 @@ export class DynamicClusterPool< /** {@inheritDoc} */ public get busy (): boolean { - return this.workers.length === this.max + return this.workers.size === this.max } }