common: fix regression with not sending sigterm to ffmpeg

This commit is contained in:
Koushik Dutta
2024-01-04 10:00:41 -08:00
parent 47a981e15a
commit 1078faef62
2 changed files with 3 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ export async function safeKillFFmpeg(cp: ChildProcess) {
catch (e) {
}
}
cp.kill();
await sleep(2000);
cp.kill('SIGKILL');
});