diff options
Diffstat (limited to 'p2p/server.go')
-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 e648c72c9..98a2edd7c 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -360,7 +360,7 @@ func (srv *Server) dialLoop() { case <-refresh.C: // Grab some nodes to connect to if we're not at capacity. srv.lock.RLock() - needpeers := len(srv.peers) < srv.MaxPeers + needpeers := len(srv.peers) < srv.MaxPeers/2 srv.lock.RUnlock() if needpeers { go func() { |