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:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user