Skip to content

Commit 781f2f8

Browse files
committed
Remove api.End() as it doesn't stop api.Recognize(), fix #387
1 parent 548a5a5 commit 781f2f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/createWorker.js

+2
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ module.exports = (_options = {}) => {
109109

110110
const terminate = async (jobId) => {
111111
if (worker !== null) {
112+
/*
112113
await startJob(createJob({
113114
id: jobId,
114115
action: 'terminate',
115116
}));
117+
*/
116118
terminateWorker(worker);
117119
worker = null;
118120
}

0 commit comments

Comments
 (0)