p2p: fix dial throttling race condition

pull/840/head
Péter Szilágyi 10 years ago
parent 29fef349ef
commit 2060bc8bac
  1. 2
      p2p/server.go

@ -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
}() }()
} }

Loading…
Cancel
Save