Skip to content

Commit 2060bc8

Browse files
committed
p2p: fix dial throttling race condition
1 parent 29fef34 commit 2060bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ func (srv *Server) dialLoop() {
427427
srv.peerWG.Add(1)
428428
go func() {
429429
srv.dialNode(dest)
430-
dialed <- dest
431430
slots <- struct{}{}
431+
dialed <- dest
432432
}()
433433
}
434434

0 commit comments

Comments
 (0)