Skip to content

Commit a82e003

Browse files
committed
little improvement
1 parent ad40fc8 commit a82e003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

worker.js

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ if (workerData) {
8080
parentPort.postMessage(JSON.stringify(videoData));
8181
}).catch((e) => {
8282
console.log("command error: ", e);
83+
process.exit(0);
8384
});
8485
} else if (workerData.type == "voiceCommand") {
8586
utils.search(workerData.query, false).then((videoData) => {
@@ -90,6 +91,7 @@ if (workerData) {
9091
}
9192
}).catch(error => {
9293
console.log("voice command error: ", error);
94+
process.exit(0);
9395
});
9496
}
9597
}

0 commit comments

Comments
 (0)