From 2060bc8bac0e803c661e0c0b233284ce52630c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Thu, 30 Apr 2015 17:12:23 +0300 Subject: [PATCH] p2p: fix dial throttling race condition --- p2p/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/server.go b/p2p/server.go index 16768f920f..b7a92ce553 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -427,8 +427,8 @@ func (srv *Server) dialLoop() { srv.peerWG.Add(1) go func() { srv.dialNode(dest) - dialed <- dest slots <- struct{}{} + dialed <- dest }() }