Use SubscriberID() is calls to DeleteDownTrack. (#2533)

Thank you @cnderrauber for catching this.
This commit is contained in:
Raja Subramanian
2024-03-01 15:21:00 +05:30
committed by GitHub
parent 9e334c7510
commit 6a0b72c357
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -981,7 +981,7 @@ func (d *DownTrack) CloseWithFlush(flush bool) {
d.onBindAndConnectedChange()
d.params.Logger.Debugw("closing sender", "kind", d.kind)
}
d.params.Receiver.DeleteDownTrack(d.params.SubID)
d.params.Receiver.DeleteDownTrack(d.SubscriberID())
if d.rtcpReader != nil && flush {
d.params.Logger.Debugw("downtrack close rtcp reader")