use atomic pointer for MediaTrackReceiver TrackInfo (#2870)

This commit is contained in:
Paul Wells
2024-07-16 02:39:14 -07:00
committed by GitHub
parent 3621e9957e
commit 9f42063fed
2 changed files with 82 additions and 115 deletions
+1 -3
View File
@@ -436,8 +436,6 @@ func (t *MediaTrack) SetMuted(muted bool) {
func (t *MediaTrack) handleReceiverEverAddDowntrack() {
if !t.everSubscribed.Swap(true) && t.params.OnTrackEverSubscribed != nil {
go func() {
t.params.OnTrackEverSubscribed(t.ID())
}()
go t.params.OnTrackEverSubscribed(t.ID())
}
}