forked from Qortal/qortal
Tidied up one last place that was accessing immutableConnectedPeers directly. This makes no difference, but helps with code consistency.
This commit is contained in:
parent
e5f88fe2f4
commit
30347900d9
@ -687,7 +687,7 @@ public class Network {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (immutableConnectedPeers.size() >= maxPeers) {
|
if (getImmutableConnectedPeers().size() >= maxPeers) {
|
||||||
// We have enough peers
|
// We have enough peers
|
||||||
LOGGER.debug("Connection discarded from peer {} because the server is full", address);
|
LOGGER.debug("Connection discarded from peer {} because the server is full", address);
|
||||||
socketChannel.close();
|
socketChannel.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user