mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +00:00
stream: don't listen for close
event for audio
This commit is contained in:
parent
4a9e4cd915
commit
7a3be8b981
1 changed files with 3 additions and 1 deletions
|
@ -96,7 +96,9 @@ export async function streamLiveRender(streamInfo, res) {
|
|||
res.setHeader('Connection', 'keep-alive');
|
||||
res.setHeader('Content-Disposition', contentDisposition(streamInfo.filename));
|
||||
|
||||
pipe(audio, audioInput, shutdown);
|
||||
audio.on('error', shutdown);
|
||||
audioInput.on('error', shutdown);
|
||||
audio.pipe(audioInput);
|
||||
pipe(muxOutput, res, shutdown);
|
||||
|
||||
process.on('close', shutdown);
|
||||
|
|
Loading…
Reference in a new issue