Update src/app/api/events/route.ts

Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
This commit is contained in:
zenchantlive 2026-02-13 00:00:53 -08:00 committed by GitHub
parent 3834a5638c
commit d49f466fa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,7 @@ export async function GET(request: Request): Promise<Response> {
closed = true;
clearInterval(heartbeat);
unsubscribe();
request.signal.removeEventListener('abort', close);
try {
controller.close();
} catch {