move stop timer in mediatracksubscriptions module where it belongs (#357)

* move stop timer in mediatracksubscriptions module where it belongs

* Correct my screw up
This commit is contained in:
Raja Subramanian
2022-01-21 00:50:48 +05:30
committed by GitHub
parent 31a0275c0b
commit 4e4ad102f7
3 changed files with 6 additions and 1 deletions
-1
View File
@@ -202,7 +202,6 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
)
wr.SetRTCPCh(t.params.RTCPChan)
wr.OnCloseHandler(func() {
t.stopMaxQualityTimer()
t.RemoveAllSubscribers()
t.MediaTrackReceiver.Close()
t.params.Telemetry.TrackUnpublished(context.Background(), t.PublisherID(), t.ToProto(), uint32(track.SSRC()))