Skip to content

Commit

Permalink
Remove api.End() as it doesn't stop api.Recognize(), fix #387
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu committed Dec 27, 2019
1 parent 548a5a5 commit 781f2f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/createWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,12 @@ module.exports = (_options = {}) => {

const terminate = async (jobId) => {
if (worker !== null) {
/*
await startJob(createJob({
id: jobId,
action: 'terminate',
}));
*/
terminateWorker(worker);
worker = null;
}
Expand Down

0 comments on commit 781f2f8

Please sign in to comment.