mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	it helps to actually run the notifyQueued stuff...
This commit is contained in:
		
							parent
							
								
									052de98f12
								
							
						
					
					
						commit
						b132560f65
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -281,6 +281,8 @@ func (p *peer) _sendPackets(packets [][]byte) {
 | 
			
		|||
	if p.idle {
 | 
			
		||||
		p.idle = false
 | 
			
		||||
		p._handleIdle()
 | 
			
		||||
	} else {
 | 
			
		||||
		p.intf.notifyQueued(p.seq)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -296,6 +298,7 @@ func (p *peer) _handleIdle() {
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if len(packets) > 0 {
 | 
			
		||||
		p.seq++
 | 
			
		||||
		p.bytesSent += uint64(size)
 | 
			
		||||
		p.intf.out(packets)
 | 
			
		||||
	} else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue