diff options
author | rubidium <rubidium@openttd.org> | 2008-12-23 20:58:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-23 20:58:03 +0000 |
commit | 2b5362de131afa3cca4d4139096f1b92d268bd4d (patch) | |
tree | 0d699dd79736133afb9429a4c93122cd0a8a711c /src/network/network.cpp | |
parent | 54f23ed0b3ff2ee72f36e8755b96ffd35e465f8a (diff) | |
download | openttd-2b5362de131afa3cca4d4139096f1b92d268bd4d.tar.xz |
(svn r14731) -Fix: don't initialise UDP multiple times without closing it.
Diffstat (limited to 'src/network/network.cpp')
-rw-r--r-- | src/network/network.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp index 3d854c320..fefd5cfe3 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -684,8 +684,6 @@ static void NetworkInitialize() _network_first_time = true; _network_reconnect = 0; - - NetworkUDPInitialize(); } // Query a server to fetch his game-info @@ -1189,6 +1187,7 @@ void NetworkStartUp() memset(&_network_game_info, 0, sizeof(_network_game_info)); + NetworkUDPInitialize(); NetworkInitialize(); DEBUG(net, 3, "[core] network online, multiplayer available"); NetworkFindBroadcastIPs(_broadcast_list, MAX_INTERFACES); |