Merge pull request #947 from ali1234/master

When disconnecting a node, the receive buffer should be cleared
This commit is contained in:
Gavin Andresen
2012-03-21 12:24:57 -07:00

View File

@@ -559,6 +559,7 @@ void CNode::CloseSocketDisconnect()
printf("disconnecting node %s\n", addr.ToString().c_str());
closesocket(hSocket);
hSocket = INVALID_SOCKET;
vRecv.clear();
}
}