From 4455e77dde7adb80dd3b0c8237160fdbab6ca795 Mon Sep 17 00:00:00 2001 From: "Owain G. Ainsworth" Date: Wed, 2 Oct 2013 15:16:04 +0100 Subject: [PATCH] Don't create additional outbound peers if any --connect are specified. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 334ac5e9..840ed8b6 100644 --- a/server.go +++ b/server.go @@ -349,7 +349,7 @@ out: } // Only try connect to more peers if we actually need more - if outboundPeers >= maxOutbound || + if outboundPeers >= maxOutbound || len(cfg.ConnectPeers) > 0 || atomic.LoadInt32(&s.shutdown) != 0 { continue }