Skip to content

Commit

Permalink
p2p/discover: add missing lock when calling tab.handleAddNode (#29960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gealber authored Jun 9, 2024
1 parent 1098d14 commit 349fcdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/discover/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 349fcdd

Please sign in to comment.