mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-14 19:25:48 +00:00
Fixed incorrect minOutboundPeers conditional
This commit is contained in:
parent
599877195b
commit
fbe4f3fad8
@ -701,8 +701,8 @@ public class Network {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean connectPeer(Peer newPeer) throws InterruptedException {
|
public boolean connectPeer(Peer newPeer) throws InterruptedException {
|
||||||
// NOT CORRECT:
|
// Also checked before creating PeerConnectTask
|
||||||
if (getImmutableConnectedPeers().size() >= minOutboundPeers)
|
if (getImmutableOutboundHandshakedPeers().size() >= minOutboundPeers)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SocketChannel socketChannel = newPeer.connect();
|
SocketChannel socketChannel = newPeer.connect();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user