Commit eb254a4
Fix double error emission when htmlStream errors after startRSC
When htmlStream errors after startRSC is running, both the
htmlStream.on('error') handler and finished(htmlStream) rejection in
startRSC's catch block would emit on resultStream, causing duplicate
error reports. Now the htmlStream error handler only emits when startRSC
hasn't been called yet; once running, finished() handles it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c7ec7ff commit eb254a4
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
297 | 302 | | |
298 | 303 | | |
299 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
300 | 307 | | |
301 | 308 | | |
302 | 309 | | |
| |||
0 commit comments