Reduce the hack listener to once a second
This commit is contained in:
		
							parent
							
								
									a5b3340e5b
								
							
						
					
					
						commit
						b95a4c61a5
					
				@ -65,7 +65,7 @@ func (tun *NativeTun) RoutineHackListener() {
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
		select {
 | 
			
		||||
		case <-time.After(time.Second / 10):
 | 
			
		||||
		case <-time.After(time.Second):
 | 
			
		||||
		case <-tun.statusListenersShutdown:
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user