why is this a problem?
This commit is contained in:
parent
0a706a43df
commit
baa3dd45dd
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ export const GET = async ({ params, locals }) => {
|
|||
controller.enqueue(chunk);
|
||||
});
|
||||
object.on('end', () => {
|
||||
try {
|
||||
controller.close();
|
||||
} catch (e) {
|
||||
console.log('Tried to close closed stream', id);
|
||||
}
|
||||
});
|
||||
},
|
||||
cancel() {
|
||||
|
|
Loading…
Reference in a new issue