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