mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
update session when a search for an existing session finishes
This commit is contained in:
parent
1c81e43fcd
commit
31ce854835
@ -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…
Reference in New Issue
Block a user