From 1cf3eee3e6ee436e3c4292e25ec07c951cc9c38c Mon Sep 17 00:00:00 2001 From: Craig Date: Mon, 3 Feb 2020 14:44:56 +0000 Subject: [PATCH] cleanup --- server/internal/webrtc/webrtc.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/server/internal/webrtc/webrtc.go b/server/internal/webrtc/webrtc.go index f488dc77..68feb517 100644 --- a/server/internal/webrtc/webrtc.go +++ b/server/internal/webrtc/webrtc.go @@ -182,28 +182,6 @@ func (m *WebRTCManager) CreatePeer(id string, sdp string) (string, types.Peer, e return "", nil, err } - /* - // clear the Transceiver bufers - go func() { - defer func() { - m.logger.Warn().Msgf("ReadRTCP shutting down") - }() - for { - packet, err := videoTransceiver.Sender.ReadRTCP() - if err != nil { - return - } - m.logger.Debug().Msgf("vReadRTCP %v", packet) - - packet, err = audioTransceiver.Sender.ReadRTCP() - if err != nil { - return - } - m.logger.Debug().Msgf("aReadRTCP %v", packet) - } - }() - */ - // set remote description connection.SetRemoteDescription(description)