Skip to content

Commit

Permalink
Fix forgotten ref() for the worker (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis Benson authored and sindresorhus committed May 19, 2019
1 parent fc519ea commit d081ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const taskWorker = (value, transferList) => new Promise(resolve => {
createWorker();
}

worker.ref();
worker.postMessage({id, value}, transferList);
});

Expand Down

0 comments on commit d081ee6

Please sign in to comment.