From 3a31b64c6505caac9fa5f4cde73345566cb3c3ab Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 11 Apr 2020 16:41:20 +0200 Subject: [PATCH] Avoid repeated error --- relay.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/relay.go b/relay.go index cc8868d..a8b3c88 100644 --- a/relay.go +++ b/relay.go @@ -206,6 +206,8 @@ func newCall(mainOffer receivedSignal, r activeRelay) { if rtcpSendErr := mainPeerConnection.WriteRTCP([]rtcp.Packet{&rtcp.PictureLossIndication{MediaSSRC: remoteTrack.SSRC()}}); rtcpSendErr != nil { fmt.Println("Write RTCP error:", rtcpSendErr) + askForClose(r) + return } } }()