X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Fdynamic.ts;h=05b61684173af58c7ed7dbbc52218c874a35fa7a;hb=ffe8ca52bf1a05f68a0c939d16f15b6b54028be9;hp=d8cc3a7427ca0f843c2c9f839747b3a663b9b95c;hpb=d2097c13847f906e289a80638248343948b7f18a;p=poolifier.git diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index d8cc3a74..05b61684 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -42,11 +42,11 @@ export class DynamicThreadPool< /** @inheritDoc */ public get full (): boolean { - return this.workers.length === this.max + return this.workerNodes.length === this.max } /** @inheritDoc */ public get busy (): boolean { - return this.full && this.findFreeWorkerKey() === -1 + return this.full && this.internalBusy() } }