mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #947 from ali1234/master
When disconnecting a node, the receive buffer should be cleared
This commit is contained in:
commit
2e2c04e250
@ -559,6 +559,7 @@ void CNode::CloseSocketDisconnect()
|
|||||||
printf("disconnecting node %s\n", addr.ToString().c_str());
|
printf("disconnecting node %s\n", addr.ToString().c_str());
|
||||||
closesocket(hSocket);
|
closesocket(hSocket);
|
||||||
hSocket = INVALID_SOCKET;
|
hSocket = INVALID_SOCKET;
|
||||||
|
vRecv.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user