mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	make sure the peer isn't idle before entering drop mode
This commit is contained in:
		
							parent
							
								
									9574308545
								
							
						
					
					
						commit
						4382368b08
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -304,7 +304,7 @@ func (p *peer) _handleIdle() {
 | 
				
			||||||
func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
 | 
					func (p *peer) dropFromQueue(from phony.Actor, seq uint64) {
 | 
				
			||||||
	p.Act(from, func() {
 | 
						p.Act(from, func() {
 | 
				
			||||||
		p.Act(nil, func() {
 | 
							p.Act(nil, func() {
 | 
				
			||||||
			if seq == p.seq {
 | 
								if seq == p.seq && !p.idle {
 | 
				
			||||||
				p.drop = true
 | 
									p.drop = true
 | 
				
			||||||
				p.max = p.queue.size + streamMsgSize
 | 
									p.max = p.queue.size + streamMsgSize
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue