mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-18 00:50:39 +00:00
p2p: fix dial throttling race condition
This commit is contained in:
parent
29fef349ef
commit
2060bc8bac
1 changed files with 1 additions and 1 deletions
|
|
@ -427,8 +427,8 @@ func (srv *Server) dialLoop() {
|
|||
srv.peerWG.Add(1)
|
||||
go func() {
|
||||
srv.dialNode(dest)
|
||||
dialed <- dest
|
||||
slots <- struct{}{}
|
||||
dialed <- dest
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue