Browse Source

Merge pull request #947 from ali1234/master

When disconnecting a node, the receive buffer should be cleared
0.8
Gavin Andresen 13 years ago
parent
commit
2e2c04e250
  1. 1
      src/net.cpp

1
src/net.cpp

@ -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…
Cancel
Save