[BUGFIX] graph.go runs into deadlock (#32)
This commit is contained in:
parent
ed049cfb55
commit
016e2dc50d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue