Simplify code

This commit is contained in:
Pierre HUBERT 2020-05-03 21:01:57 +02:00
parent f5d4e160b1
commit 65e1f87698

View File

@ -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
} }