Commit 34e64f1
smc: revise defer Unsubscribe comment to match actual lifecycle
Per Copilot — the previous comment claimed parity with the
SSE-stream-failure path, but in practice PeerConnectionEvents
blocks until ctx cancellation and there's no retry loop wrapping
listenPeerConnectionEvents, so the defer effectively runs at
process shutdown. Rewrote to spell that out while still calling
out why defer is the right shape (future-proofing against early
returns / retry wrappers).
No code change.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2b553c7 commit 34e64f1
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
| |||
0 commit comments