Commit 82a786c
fix(transport): remove removeTrack loop before close to prevent crashes
removeTrack nulls sender tracks and changes transceiver directions,
causing PeerConnection::Close() to skip ClearSend/DetachTrack in its
StopTransceiverProcedure and hit edge cases in the worker-thread
teardown (ICE use-after-free, AVAudioEngine deallocation assertion).
Close() handles full cleanup on its own. The loop was originally
commented out as "not required?" and was accidentally uncommented
during a threading refactor (101e09d).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 40f637c commit 82a786c
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
0 commit comments