Merge pull request #362 from svost/c++11
[novacoin.git] / src / net.cpp
index a1d9e33..bf2f38b 100644 (file)
@@ -1791,6 +1791,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
     {
         strError = strprintf("Error: Couldn't set properties on socket for incoming connections (error %d)", WSAGetLastError());
         printf("%s\n", strError.c_str());
+        CloseSocket(hListenSocket);
         return false;
     }