mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
stream: dont double send headers on critical error
This commit is contained in:
parent
f632c7dfb3
commit
b0da5bb893
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import { streamAudioOnly, streamDefault, streamLiveRender, streamVideoOnly, convertToGif } from "./types.js";
|
||||
import { internalStream } from './internal.js';
|
||||
import { closeResponse } from "./shared.js";
|
||||
|
||||
export default async function(res, streamInfo) {
|
||||
try {
|
||||
|
@ -25,6 +26,6 @@ export default async function(res, streamInfo) {
|
|||
break;
|
||||
}
|
||||
} catch {
|
||||
res.sendStatus(500);
|
||||
closeResponse(res)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue