summaryrefslogtreecommitdiff
path: root/src/network/network.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-04 18:10:40 +0000
committerrubidium <rubidium@openttd.org>2007-01-04 18:10:40 +0000
commitae9750e69bb415d1d41ab63ecda566d6c61f2b47 (patch)
treeea1b145a0458b56d9a82668e8520cfe206388fb5 /src/network/network.c
parent2fda7e6c10551ad6a1573b8b78aa2d9f17620e88 (diff)
downloadopenttd-ae9750e69bb415d1d41ab63ecda566d6c61f2b47.tar.xz
(svn r7825) -Codechange: make NetworkUDPClose close a single UDP socket. Use NetworkUDPStop to close all opened udp sockets (those were called NetworkUDPClose).
Diffstat (limited to 'src/network/network.c')
-rw-r--r--src/network/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/network.c b/src/network/network.c
index c8cb85804..fd7c14c88 100644
--- a/src/network/network.c
+++ b/src/network/network.c
@@ -833,7 +833,7 @@ static void NetworkClose(void)
closesocket(_listensocket);
_listensocket = INVALID_SOCKET;
DEBUG(net, 1, "Closed listener");
- NetworkUDPClose();
+ NetworkUDPStop();
}
}
@@ -949,7 +949,7 @@ bool NetworkClientConnectGame(const char *host, uint16 port)
_network_last_port = port;
NetworkDisconnect();
- NetworkUDPClose();
+ NetworkUDPStop();
NetworkInitialize();
// Try to connect
@@ -1426,7 +1426,7 @@ void NetworkStartUp(void)
void NetworkShutDown(void)
{
NetworkDisconnect();
- NetworkUDPClose();
+ NetworkUDPStop();
DEBUG(net, 3, "[core] shutting down network");