mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Recover if stillAlive fails
This commit is contained in:
		
							parent
							
								
									311c612f2e
								
							
						
					
					
						commit
						06330f503f
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -122,6 +122,7 @@ func (s *tunConn) writer() error {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (s *tunConn) stillAlive() {
 | 
					func (s *tunConn) stillAlive() {
 | 
				
			||||||
 | 
						defer func() { recover() }()
 | 
				
			||||||
	select {
 | 
						select {
 | 
				
			||||||
	case s.alive <- struct{}{}:
 | 
						case s.alive <- struct{}{}:
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue