Separate close and stop on MediaTrackSubscriptions. (#823)

This commit is contained in:
Raja Subramanian
2022-07-09 12:42:54 +05:30
committed by GitHub
parent 1e71343964
commit 01f7309adc
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ func (t *MediaTrackReceiver) Close() {
onclose := t.onClose
t.lock.RUnlock()
t.MediaTrackSubscriptions.Stop()
t.MediaTrackSubscriptions.Close()
for _, f := range onclose {
f()
}