mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	safer linkloop
This commit is contained in:
		
							parent
							
								
									88161009e9
								
							
						
					
					
						commit
						ecd23ce9fc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -213,7 +213,7 @@ func (p *peer) linkLoop() {
 | 
				
			||||||
		case dinfo = <-p.dinfo:
 | 
							case dinfo = <-p.dinfo:
 | 
				
			||||||
		case _ = <-tick.C:
 | 
							case _ = <-tick.C:
 | 
				
			||||||
			if dinfo != nil {
 | 
								if dinfo != nil {
 | 
				
			||||||
				p.core.router.insertPeer(nil, dinfo)
 | 
									<-p.SyncExec(func() { p.core.router.insertPeer(p, dinfo) })
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue