Tidied up one last place that was accessing immutableConnectedPeers directly. This makes no difference, but helps with code consistency.

This commit is contained in:
CalDescent 2022-03-11 15:28:54 +00:00
parent e5f88fe2f4
commit 30347900d9

View File

@ -687,7 +687,7 @@ public class Network {
return;
}
if (immutableConnectedPeers.size() >= maxPeers) {
if (getImmutableConnectedPeers().size() >= maxPeers) {
// We have enough peers
LOGGER.debug("Connection discarded from peer {} because the server is full", address);
socketChannel.close();