Fix getConnectablePeers for low peer sites
This commit is contained in:
parent
0045206735
commit
39d442a05d
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ class Site(object):
|
||||||
break # Found requested number of peers
|
break # Found requested number of peers
|
||||||
|
|
||||||
if len(found) < need_num: # Return not that good peers
|
if len(found) < need_num: # Return not that good peers
|
||||||
found = [
|
found += [
|
||||||
peer for peer in peers
|
peer for peer in peers
|
||||||
if not peer.key.endswith(":0") and
|
if not peer.key.endswith(":0") and
|
||||||
peer.key not in ignore and
|
peer.key not in ignore and
|
||||||
|
|
Loading…
Reference in a new issue