Merge pull request #947 from ali1234/master
When disconnecting a node, the receive buffer should be cleared
This commit is contained in:
commit
2e2c04e250
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue