chore: v2.7.2
[poolifier.git] / src / pools / abstract-pool.ts
index e525cc9a5ccd1ac9b3e58bbc5d867e4f82ea2603..70459dbbee743d82f158eb9739e9bda8367478e4 100644 (file)
@@ -133,8 +133,8 @@ export abstract class AbstractPool<
         'Cannot start a pool from a worker with the same type as the pool'
       )
     }
-    this.checkNumberOfWorkers(this.numberOfWorkers)
     checkFilePath(this.filePath)
+    this.checkNumberOfWorkers(this.numberOfWorkers)
     this.checkPoolOptions(this.opts)
 
     this.chooseWorkerNode = this.chooseWorkerNode.bind(this)