aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-30 22:12:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-07 20:22:08 +0800
commit2060bc8bac0e803c661e0c0b233284ce52630c1d (patch)
treea661b8f399cd04acc7eec69059777c364dcf9971 /p2p/server.go
parent29fef349efd87dcca76b0593e6b68ca9f3ccf2cd (diff)
downloadgo-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.gz
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.bz2
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.lz
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.xz
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.zst
go-tangerine-2060bc8bac0e803c661e0c0b233284ce52630c1d.zip
p2p: fix dial throttling race condition
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 16768f920..b7a92ce55 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
}()
}