mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-11-17 02:51:12 +00:00
Simplify code
This commit is contained in:
parent
f5d4e160b1
commit
65e1f87698
4
relay.go
4
relay.go
@ -431,9 +431,7 @@ func newCall(mainOffer receivedSignal, r *activeRelay) {
|
||||
select {
|
||||
case t := <-localTrackChan:
|
||||
localTracks = append(localTracks, t)
|
||||
if len(localTracks) >= numberTracks {
|
||||
stopCheck = true
|
||||
}
|
||||
stopCheck = len(localTracks) >= numberTracks
|
||||
case <-time.After(time.Millisecond * 1000):
|
||||
stopCheck = true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user