Commit 2060bc8b authored by Péter Szilágyi's avatar Péter Szilágyi

p2p: fix dial throttling race condition

parent 29fef349
...@@ -427,8 +427,8 @@ func (srv *Server) dialLoop() { ...@@ -427,8 +427,8 @@ func (srv *Server) dialLoop() {
srv.peerWG.Add(1) srv.peerWG.Add(1)
go func() { go func() {
srv.dialNode(dest) srv.dialNode(dest)
dialed <- dest
slots <- struct{}{} slots <- struct{}{}
dialed <- dest
}() }()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment