aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-03-21 12:24:57 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-03-21 12:24:57 -0700
commit2e2c04e250fff9a3404b4da2cf0f73c38c126050 (patch)
treef254a3d2900d8c02eed08ce7dd3f2cce7c755e43
parentb2fe3a5ca690299a55f52beee3932f0126b79363 (diff)
parentbb13d056ea332030a3b960bf2756a36de77e05b8 (diff)
Merge pull request #947 from ali1234/master
When disconnecting a node, the receive buffer should be cleared
-rw-r--r--src/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b22300e82f..94ef7e7b3a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -559,6 +559,7 @@ void CNode::CloseSocketDisconnect()
printf("disconnecting node %s\n", addr.ToString().c_str());
closesocket(hSocket);
hSocket = INVALID_SOCKET;
+ vRecv.clear();
}
}