Commit 7513872
fix: don't tear down client on transient Disconnected, unblock OnTrack
- Remove PeerConnectionStateDisconnected from terminal state check in
HandleWebSocket — it's a transient ICE state that can self-recover
- Spawn forwardRTP as a goroutine inside sync.Once.Do so the OnTrack
callback returns immediately instead of blocking forever
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent e70e272 commit 7513872
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments