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
commit 2e2c04e250
1 changed files with 1 additions and 0 deletions

View File

@ -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();
} }
} }