Move NotifyNumConnectionsChanged logic to private method.

This commit is contained in:
Patrick Strateman
2018-09-24 16:30:53 -04:00
parent 2f7ae35ce8
commit edb5350c32
2 changed files with 18 additions and 11 deletions

View File

@@ -336,6 +336,7 @@ private:
void ThreadOpenConnections(std::vector<std::string> connect);
void ThreadMessageHandler();
void AcceptConnection(const ListenSocket& hListenSocket);
void NotifyNumConnectionsChanged();
void ThreadSocketHandler();
void ThreadDNSAddressSeed();
@@ -406,6 +407,7 @@ private:
std::list<CNode*> vNodesDisconnected;
mutable CCriticalSection cs_vNodes;
std::atomic<NodeId> nLastNodeId;
unsigned int nPrevNodeCount;
/** Services this instance offers */
ServiceFlags nLocalServices;