mirror of
				https://gitlab.com/comunic/ComunicRTCProxy
				synced 2025-11-04 04:04:19 +00:00 
			
		
		
		
	Simplify code
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user