From a2f5bb82d1fd0621ebd06ded41fd676c90173d3d Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 18 Dec 2020 18:56:07 +0100 Subject: [PATCH] Delete unrequested connections in addDownConnTracks. We don't renegotiate down connections yet, but this is a latent bug. --- rtpconn/webclient.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rtpconn/webclient.go b/rtpconn/webclient.go index 99b44c8..a9f274b 100644 --- a/rtpconn/webclient.go +++ b/rtpconn/webclient.go @@ -610,6 +610,7 @@ func addDownConnTracks(c *webClient, remote conn.Up, tracks []conn.UpTrack) (*rt } } if !requested { + delDownConn(c, remote.Id()) return nil, nil }