Delete down track from receiver in close always. (#1842)
* Delete down track from receiver in close always. I think with the parallel close in goroutines, it so happens that peer connection can get closed first and unbind the track. The delete down track and RTCP reader close was inside if `bound` block. So, they were not running leaving a dangling down track in the receiver. * fix tests * fix test
This commit is contained in:
@@ -584,7 +584,6 @@ func TestSubscribeToCodecUnsupported(t *testing.T) {
|
||||
for _, t := range tracks {
|
||||
if strings.EqualFold(t.Codec().MimeType, "video/vp8") {
|
||||
return ""
|
||||
|
||||
}
|
||||
}
|
||||
return "did not receive track with vp8"
|
||||
|
||||
Reference in New Issue
Block a user