rebroadcast: use a safer kill order

This commit is contained in:
Koushik Dutta
2022-03-03 00:55:19 -08:00
parent d6baa586fb
commit 88afe953c1

View File

@@ -478,8 +478,8 @@ class PrebufferSession {
const mp4Session = await startFFMPegFragmentedMP4Session(ffmpegInput.inputArguments, acodec, vcodec, this.console);
const kill = () => {
session.kill();
mp4Session.cp.kill('SIGKILL');
session.kill();
mp4Session.generator.throw(new Error('killed'));
};