Skip to content

Commit

Permalink
Revert "Only run DisconnectNodes once per second"
Browse files Browse the repository at this point in the history
This reverts commit 30e4afa.
  • Loading branch information
codablock committed Apr 22, 2020
1 parent e51580f commit d6b69db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1872,9 +1872,9 @@ void CConnman::ThreadSocketHandler()
ForEachNode(AllNodes, [&](CNode* pnode) {
InactivityCheck(pnode);
});
DisconnectNodes();
nLastCleanupNodes = GetTimeMillis();
}
DisconnectNodes();
NotifyNumConnectionsChanged();
}
}
Expand Down

0 comments on commit d6b69db

Please sign in to comment.