mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 07:20:39 +03: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")
|
panic("This should never happen")
|
||||||
}
|
}
|
||||||
} else {
|
} 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"))
|
sinfo.callback(nil, errors.New("session already exists"))
|
||||||
// Cleanup
|
// Cleanup
|
||||||
delete(sinfo.searches.searches, res.Dest)
|
delete(sinfo.searches.searches, res.Dest)
|
||||||
|
Loading…
Reference in New Issue
Block a user