From e5fec68acf91b84ec8e77f4062e8841600a476d9 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 25 Dec 2020 20:10:12 +0100 Subject: [PATCH] Start RTCP up sender early. --- rtpconn/rtpconn.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtpconn/rtpconn.go b/rtpconn/rtpconn.go index 0b8dc40..375a78a 100644 --- a/rtpconn/rtpconn.go +++ b/rtpconn/rtpconn.go @@ -453,10 +453,11 @@ func newUpConn(c group.Client, id string) (*rtpUpConnection, error) { for _, cc := range clients { cc.PushConn(c.Group(), up.id, up, tracks, up.label) } - go rtcpUpSender(up) } }) + go rtcpUpSender(up) + return up, nil }