Add process kill

pull/191/head
Andrew 2 years ago
parent 25fb910c56
commit ef5ad51984

@ -1116,7 +1116,10 @@ function download(
}
getId(randomId + ".close").addEventListener("click", () => {
controller.abort();
controller.abort()
try {
process.kill(downloadProcess.ytDlpProcess.pid, 'SIGHINT')
} catch (_error) {}
});
downloadProcess

Loading…
Cancel
Save