Skip to content

Commit

Permalink
fix: pthread worker leak
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Apr 25, 2024
1 parent 7a3139c commit cfb13a5
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 cfb13a5

Please sign in to comment.