From 31ce8548353addd4be489aa171610144b7b87cd3 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 12 Oct 2019 15:37:40 -0500 Subject: [PATCH] update session when a search for an existing session finishes --- src/yggdrasil/search.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yggdrasil/search.go b/src/yggdrasil/search.go index 322131ed..6c43cfef 100644 --- a/src/yggdrasil/search.go +++ b/src/yggdrasil/search.go @@ -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)