From a33d7eb5d68a409e6527f9a25472b3f981118089 Mon Sep 17 00:00:00 2001 From: svost Date: Tue, 3 May 2016 21:49:38 +0300 Subject: [PATCH] Close socket:return false --- src/net.cpp | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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; } -- 1.7.1