Skip to content

best way to save what you love

types: added comments

wukkob662f472ddac
diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js
index 38ebc684..dc9579a9 100644
--- a/src/modules/stream/types.js
+++ b/src/modules/stream/types.js
@@ -16,9 +16,11 @@ function closeResponse(res) {
}
function killProcess(p) {
+ // ask the process to terminate itself gracefully
p?.kill('SIGTERM');
setTimeout(() => {
if (p?.exitCode === null)
+ // brutally murder the process if it didn't quit
p?.kill('SIGKILL');
}, 5000);
}