Skip to content

Commit

Permalink
fix: pthread worker leak (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi authored Apr 25, 2024
1 parent 7a3139c commit 82fad55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emnapi/src/core/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,6 @@ export var PThread = {
}
const worker = PThread.allocateUnusedWorker()
PThread.loadWasmModuleToWorker(worker)
return worker
return PThread.unusedWorkers.pop()
}
}

0 comments on commit 82fad55

Please sign in to comment.