diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-30 22:12:23 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-07 20:22:08 +0800 |
commit | 2060bc8bac0e803c661e0c0b233284ce52630c1d (patch) | |
tree | a661b8f399cd04acc7eec69059777c364dcf9971 /p2p | |
parent | 29fef349efd87dcca76b0593e6b68ca9f3ccf2cd (diff) | |
download | dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.gz dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.bz2 dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.lz dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.xz dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.tar.zst dexon-2060bc8bac0e803c661e0c0b233284ce52630c1d.zip |
p2p: fix dial throttling race condition
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server.go | 2 |
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 }() } |