Browse Source

Merge pull request #4388

3dc1464 add missing vhListenSocket.clear(); to CNetCleanup() (Philip Kaufmann)
2831a03 remove unused CNode::Cleanup() (Philip Kaufmann)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
52d4abfdef
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/net.cpp
  2. 2
      src/net.h

6
src/net.cpp

@ -528,10 +528,6 @@ void CNode::CloseSocketDisconnect() @@ -528,10 +528,6 @@ void CNode::CloseSocketDisconnect()
pnodeSync = NULL;
}
void CNode::Cleanup()
{
}
void CNode::PushVersion()
{
int nBestHeight = g_signals.GetHeight().get_value_or(0);
@ -777,7 +773,6 @@ void ThreadSocketHandler() @@ -777,7 +773,6 @@ void ThreadSocketHandler()
// close socket and cleanup
pnode->CloseSocketDisconnect();
pnode->Cleanup();
// hold in disconnected pool until all refs are released
if (pnode->fNetworkNode || pnode->fInbound)
@ -1793,6 +1788,7 @@ public: @@ -1793,6 +1788,7 @@ public:
delete pnode;
vNodes.clear();
vNodesDisconnected.clear();
vhListenSocket.clear();
delete semOutbound;
semOutbound = NULL;
delete pnodeLocalHost;

2
src/net.h

@ -693,8 +693,6 @@ public: @@ -693,8 +693,6 @@ public:
void Subscribe(unsigned int nChannel, unsigned int nHops=0);
void CancelSubscribe(unsigned int nChannel);
void CloseSocketDisconnect();
void Cleanup();
// Denial-of-service detection/prevention
// The idea is to detect peers that are behaving

Loading…
Cancel
Save