Don't create additional outbound peers if any --connect are specified.
This commit is contained in:
parent
98109dbadd
commit
4455e77dde
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue