Merge pull request 'why is this a problem?' (#10) from development into master

Reviewed-on: #10
This commit is contained in:
cirroskais 2024-10-04 08:52:57 +00:00
commit ae0cb8f8c6

View file

@ -25,7 +25,11 @@ export const GET = async ({ params, locals }) => {
controller.enqueue(chunk); controller.enqueue(chunk);
}); });
object.on('end', () => { object.on('end', () => {
controller.close(); try {
controller.close();
} catch (e) {
console.log('Tried to close closed stream', id);
}
}); });
}, },
cancel() { cancel() {