Skip to content

Commit e5d94b0

Browse files
committed
on error dont exit
1 parent 43c6f7a commit e5d94b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ export async function startSSEListener(ctx: Context) {
879879
break;
880880
case 'error':
881881
ctx.log.debug('SSE Error occurred:', data);
882-
process.exit(0);
883-
882+
currentConnection?.abort();
883+
return;
884884
}
885885
}
886886
);

0 commit comments

Comments
 (0)