When disconnecting a node, clear the received buffer so that we do
[novacoin.git] / src / net.cpp
index a8d3d0b..763e160 100644 (file)
@@ -716,6 +716,7 @@ void CNode::CloseSocketDisconnect()
         printf("disconnecting node %s\n", addr.ToString().c_str());
         closesocket(hSocket);
         hSocket = INVALID_SOCKET;
+        vRecv.clear();
     }
 }