Add missing comment in net.cpp

Missed in previous backports
This commit is contained in:
Alexander Block 2017-09-14 20:10:12 +02:00
parent 5f68e06a07
commit c8e04d43f7

View File

@ -999,6 +999,7 @@ bool CConnman::AttemptToEvictConnection()
// Reduce to the network group with the most connections // Reduce to the network group with the most connections
std::vector<NodeEvictionCandidate> vEvictionNodes = mapAddrCounts[naMostConnections]; std::vector<NodeEvictionCandidate> vEvictionNodes = mapAddrCounts[naMostConnections];
// Do not disconnect peers if there is only 1 connection from their network group
if(vEvictionNodes.empty()) { if(vEvictionNodes.empty()) {
return false; return false;
} }