4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-03 09:37:47 +00:00

move router member initialization into router.init

This commit is contained in:
Arceliar
2019-08-23 20:29:16 -05:00
parent 9835c63818
commit ebd806f27a
2 changed files with 3 additions and 3 deletions

View File

@ -73,6 +73,9 @@ func (r *router) init(core *Core) {
r.core.config.Mutex.RLock()
r.nodeinfo.setNodeInfo(r.core.config.Current.NodeInfo, r.core.config.Current.NodeInfoPrivacy)
r.core.config.Mutex.RUnlock()
r.dht.init(r.core)
r.searches.init(r.core)
r.sessions.init(r.core)
}
// Starts the mainLoop goroutine.