Revert unbound transceiver stop. (#3661)

This is causing duplicate a=msid in testing. Will chase condition that
caused the addition of code to stop transceiver later.
This commit is contained in:
Raja Subramanian
2025-05-13 16:33:09 +05:30
committed by GitHub
parent 5172af1526
commit 2df0551762
2 changed files with 4 additions and 14 deletions
+2 -10
View File
@@ -453,16 +453,8 @@ func (t *MediaTrackSubscriptions) downTrackClosed(
// delete the subscribed track only after caching.
if isExpectedToResume {
dt := subTrack.DownTrack()
tr, wasBound := dt.GetTransceiver()
if tr != nil {
if wasBound {
sub.CacheDownTrack(subTrack.ID(), tr, dt.GetState())
} else {
// unbound transceivers cannot be re-used as pion will not fire Bind() in
// ReplaceTrack().
t.params.Logger.Infow("stopping unbound transceiver")
tr.Stop()
}
if tr := dt.GetTransceiver(); tr != nil {
sub.CacheDownTrack(subTrack.ID(), tr, dt.GetState())
}
}