Add a check

This commit is contained in:
Pierre HUBERT 2020-04-13 09:43:56 +02:00
parent 1e29c62378
commit 1b88b51c23

View File

@ -330,6 +330,11 @@ func newCall(mainOffer receivedSignal, r *activeRelay) {
rtpBuf := make([]byte, 1400) rtpBuf := make([]byte, 1400)
for { for {
if r.closed {
return
}
i, readErr := remoteTrack.Read(rtpBuf) i, readErr := remoteTrack.Read(rtpBuf)
if readErr != nil { if readErr != nil {
// Could not read from remote track // Could not read from remote track