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:
parent
3834a5638c
commit
d49f466fa9
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue