Skip to content

Commit

Permalink
Merge pull request #3 from RichieAHB/fix-terminate
Browse files Browse the repository at this point in the history
Fix infinite loop when trying to terminate
  • Loading branch information
developit authored Jan 10, 2018
2 parents 75c4695 + 314902b commit 0bfad35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function workerize(code) {
let term = worker.terminate;
worker.terminate = () => {
URL.revokeObjectURL(url);
worker.terminate();
term();
};
worker.rpcMethods = {};
function setup(ctx, rpcMethods, callbacks) {
Expand Down

0 comments on commit 0bfad35

Please sign in to comment.