Skip to content

Commit 8dd1d3e

Browse files
DEZREMNACUIdezremnacui
authored andcommitted
fix: fix taskDone duplicate listener (#895)
Co-authored-by: dezremnacui <dezremnacui@gmail.com> (cherry picked from commit 1775b91)
1 parent ca951fe commit 8dd1d3e

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
@@ -673,6 +673,8 @@ class ThreadPool {
673673
}
674674
};
675675

676+
this.workers.onTaskDone(checkIfWorkerIsDone);
677+
676678
for (const workerInfo of this.workers) {
677679
checkIfWorkerIsDone(workerInfo);
678680

0 commit comments

Comments
 (0)