mirror of
https://github.com/koush/scrypted.git
synced 2026-02-13 10:22:57 +00:00
rebroadcast: use a safer kill order
This commit is contained in:
@@ -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'));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user