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

@@ -1,12 +1,12 @@
{
"name": "@scrypted/server",
"version": "0.79.0",
"version": "0.80.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/server",
"version": "0.79.0",
"version": "0.80.0",
"license": "ISC",
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.11",

View File

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