[BUGFIX] graph.go runs into deadlock (#32)

This commit is contained in:
Geno 2017-03-07 16:47:58 +01:00 committed by GitHub
parent ed049cfb55
commit 016e2dc50d
1 changed files with 0 additions and 2 deletions

View File

@ -48,9 +48,7 @@ func (nodes *Nodes) BuildGraph() *Graph {
vpn: make(map[string]interface{}), vpn: make(map[string]interface{}),
} }
nodes.RLock()
builder.readNodes(nodes.List) builder.readNodes(nodes.List)
nodes.RUnlock()
graph := &Graph{Version: 1} graph := &Graph{Version: 1}
graph.Batadv.Directed = false graph.Batadv.Directed = false