5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-09 23:20:28 +00:00

update session when a search for an existing session finishes

This commit is contained in:
Arceliar 2019-10-12 15:37:40 -05:00
parent 1c81e43fcd
commit 31ce854835

View File

@ -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)