p2p: fix dial throttling race condition
This commit is contained in:
@ -427,8 +427,8 @@ func (srv *Server) dialLoop() {
|
||||
srv.peerWG.Add(1)
|
||||
go func() {
|
||||
srv.dialNode(dest)
|
||||
dialed <- dest
|
||||
slots <- struct{}{}
|
||||
dialed <- dest
|
||||
}()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user