Skip to content

Commit

Permalink
Merge pull request #947 from ali1234/master
Browse files Browse the repository at this point in the history
When disconnecting a node, the receive buffer should be cleared
  • Loading branch information
gavinandresen committed Mar 21, 2012
2 parents b2fe3a5 + bb13d05 commit 2e2c04e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ void CNode::CloseSocketDisconnect()
printf("disconnecting node %s\n", addr.ToString().c_str());
closesocket(hSocket);
hSocket = INVALID_SOCKET;
vRecv.clear();
}
}

Expand Down

0 comments on commit 2e2c04e

Please sign in to comment.