mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-12-26 13:38:55 +00:00
Add a check
This commit is contained in:
parent
1e29c62378
commit
1b88b51c23
5
relay.go
5
relay.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user