mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	possible workaround to a deadlock
This commit is contained in:
		
							parent
							
								
									15750a5194
								
							
						
					
					
						commit
						bca69df1f6
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -625,5 +625,8 @@ func (sinfo *sessionInfo) doRecv(p *wire_trafficPacket) {
 | 
			
		|||
	sinfo.updateNonce(&p.Nonce)
 | 
			
		||||
	sinfo.time = time.Now()
 | 
			
		||||
	sinfo.bytesRecvd += uint64(len(bs))
 | 
			
		||||
	sinfo.core.router.toRecv <- router_recvPacket{bs, sinfo}
 | 
			
		||||
	select {
 | 
			
		||||
	case sinfo.core.router.toRecv <- router_recvPacket{bs, sinfo}:
 | 
			
		||||
	default: // avoid deadlocks, maybe do this somewhere else?...
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue