fix: ignore SSE reader cleanup reset
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -71,7 +71,7 @@ async function inspectEvents(parsed: Parsed, env: Record<string, string | undefi
|
||||
const frame = parseSseBlock(block);
|
||||
if (frame) frames.push(frame);
|
||||
if (frames.filter((entry) => entry.name === "hwlab.event.v1").length >= minEvents) {
|
||||
await reader.cancel();
|
||||
await reader.cancel().catch(() => undefined);
|
||||
break readStream;
|
||||
}
|
||||
boundary = buffer.indexOf("\n\n");
|
||||
|
||||
Reference in New Issue
Block a user