mirror of
https://gitlab.com/comunic/ComunicRTCProxy
synced 2024-12-26 13:38:55 +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 {
|
select {
|
||||||
case t := <-localTrackChan:
|
case t := <-localTrackChan:
|
||||||
localTracks = append(localTracks, t)
|
localTracks = append(localTracks, t)
|
||||||
if len(localTracks) >= numberTracks {
|
stopCheck = len(localTracks) >= numberTracks
|
||||||
stopCheck = true
|
|
||||||
}
|
|
||||||
case <-time.After(time.Millisecond * 1000):
|
case <-time.After(time.Millisecond * 1000):
|
||||||
stopCheck = true
|
stopCheck = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user