Merge pull request #268 from svost/CloseSocket
[novacoin.git] / src / net.h
index 3c140fe..a98a416 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -265,8 +265,7 @@ public:
     {
         if (hSocket != INVALID_SOCKET)
         {
-            closesocket(hSocket);
-            hSocket = INVALID_SOCKET;
+            CloseSocket(hSocket);
         }
     }