Skip to content

Commit

Permalink
Merge pull request #4388
Browse files Browse the repository at this point in the history
3dc1464 add missing vhListenSocket.clear(); to CNetCleanup() (Philip Kaufmann)
2831a03 remove unused CNode::Cleanup() (Philip Kaufmann)
  • Loading branch information
laanwj committed Jun 23, 2014
2 parents bfb55dd + 3dc1464 commit 52d4abf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,6 @@ void CNode::CloseSocketDisconnect()
pnodeSync = NULL;
}

void CNode::Cleanup()
{
}

void CNode::PushVersion()
{
int nBestHeight = g_signals.GetHeight().get_value_or(0);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -1793,6 +1788,7 @@ class CNetCleanup
delete pnode;
vNodes.clear();
vNodesDisconnected.clear();
vhListenSocket.clear();
delete semOutbound;
semOutbound = NULL;
delete pnodeLocalHost;
Expand Down
2 changes: 0 additions & 2 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,6 @@ class CNode
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
Expand Down

0 comments on commit 52d4abf

Please sign in to comment.