p2p/discover: add missing lock when calling tab.handleAddNode (#29960)
This commit is contained in:
parent
1098d148a5
commit
349fcdd22d
@ -452,7 +452,9 @@ func (tab *Table) loadSeedNodes() {
|
||||
addr, _ := seed.UDPEndpoint()
|
||||
tab.log.Trace("Found seed node in database", "id", seed.ID(), "addr", addr, "age", age)
|
||||
}
|
||||
tab.mutex.Lock()
|
||||
tab.handleAddNode(addNodeOp{node: seed, isInbound: false})
|
||||
tab.mutex.Unlock()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user