Don't create additional outbound peers if any --connect are specified.

This commit is contained in:
Owain G. Ainsworth 2013-10-02 15:16:04 +01:00
parent 98109dbadd
commit 4455e77dde

View file

@ -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
}