Revert "Only run DisconnectNodes once per second"

This reverts commit 30e4afae00.
This commit is contained in:
Alexander Block 2020-04-22 16:05:11 +02:00
parent e51580f052
commit d6b69dbf69

View File

@ -1872,9 +1872,9 @@ void CConnman::ThreadSocketHandler()
ForEachNode(AllNodes, [&](CNode* pnode) {
InactivityCheck(pnode);
});
DisconnectNodes();
nLastCleanupNodes = GetTimeMillis();
}
DisconnectNodes();
NotifyNumConnectionsChanged();
}
}