Skip to content

v4.0.7: Fix call callback for stopMultiWorker before stop all workers

Compare
Choose a tag to compare
@evantahler evantahler released this 08 Jun 16:58
· 967 commits to main since this release

In some cases stop callback for multiWorker called before all workers stopped.
It's happened through calling self.workers.pop() in checkWorkers method, and check self.workers.length === 0 in stopWait.