From: svost Date: Tue, 3 May 2016 18:49:38 +0000 (+0300) Subject: Close socket:return false X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=a33d7eb5d68a409e6527f9a25472b3f981118089;hp=b58eb20ea1faf5ee4cc0f22817a9e875e1c2e762 Close socket:return false --- diff --git a/src/net.cpp b/src/net.cpp index a1d9e33..f711696 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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(hSocket); return false; }