refactor: cleanup pool busyness checks
[poolifier.git] / src / pools / cluster / dynamic.ts
index 9f9abb01ddaa5f3015ef4a08bd2ee046dc9312c9..89180f1f161d9351190189ff06cd7e76a40f30d5 100644 (file)
@@ -46,6 +46,6 @@ export class DynamicClusterPool<
 
   /** @inheritDoc */
   public get busy (): boolean {
-    return this.full && this.findFreeWorkerNodeKey() === -1
+    return this.full && this.internalBusy()
   }
 }