summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-03 10:29:56 +0000
committerrubidium <rubidium@openttd.org>2009-04-03 10:29:56 +0000
commit47602d7b60e40821c364dbd07161caaf30803d52 (patch)
tree3554d71e91f71f222be628b9cc55036280083b66 /src/network/core
parentdccfba6e20cdc4bb6d068f075e9b6d7fefee0fb0 (diff)
downloadopenttd-47602d7b60e40821c364dbd07161caaf30803d52.tar.xz
(svn r15925) -Codechange: remove _network_server_bind_ip as it's pretty AF dependant.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/address.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp
index d8420b206..7d91aa9a4 100644
--- a/src/network/core/address.cpp
+++ b/src/network/core/address.cpp
@@ -124,6 +124,7 @@ static SOCKET ConnectLoopProc(addrinfo *runp)
if (connect(sock, runp->ai_addr, runp->ai_addrlen) != 0) {
DEBUG(net, 1, "Could not connect socket: %s", strerror(errno));
+ closesocket(sock);
return INVALID_SOCKET;
}