why is this a problem?

This commit is contained in:
cirroskais 2024-10-04 04:52:28 -04:00
parent 0a706a43df
commit baa3dd45dd
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -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() {