X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=8b8c5185772dbea59bc0d22b2e1cb90b9383d507;hb=e65c6cd9a3d6ed2e5b8af95120a5aa070101e945;hp=0a2d0f3879fc6ab44129608fec6d9c6624cd4c1a;hpb=d4abc60abeea2538c1452ae6d8bd2463bdacc910;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index 0a2d0f38..8b8c5185 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.size === this.max + return this.workers.length === this.max } }