mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	update session when a search for an existing session finishes
This commit is contained in:
		
							parent
							
								
									1c81e43fcd
								
							
						
					
					
						commit
						31ce854835
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -205,6 +205,8 @@ func (sinfo *searchInfo) checkDHTRes(res *dhtRes) bool {
 | 
			
		|||
			panic("This should never happen")
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		sess.coords = res.Coords         // In case coords have updated
 | 
			
		||||
		sess.ping(sinfo.searches.router) // In case the remote side needs updating
 | 
			
		||||
		sinfo.callback(nil, errors.New("session already exists"))
 | 
			
		||||
		// Cleanup
 | 
			
		||||
		delete(sinfo.searches.searches, res.Dest)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue