Skip to content

Commit 1775b91

Browse files
DEZREMNACUIdezremnacui
andauthored
fix: fix taskDone duplicate listener (#895)
Co-authored-by: dezremnacui <dezremnacui@gmail.com>
1 parent d081228 commit 1775b91

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ class ThreadPool {
683683
}
684684
};
685685

686+
this.workers.onTaskDone(checkIfWorkerIsDone);
687+
686688
for (const workerInfo of this.workers) {
687689
checkIfWorkerIsDone(workerInfo);
688690

0 commit comments

Comments
 (0)