mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-01 12:46:07 +00:00
stream: dont double send headers on critical error
This commit is contained in:
parent
f632c7dfb3
commit
b0da5bb893
|
@ -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