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