summaryrefslogtreecommitdiff
path: root/src/network/core/udp.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-08 00:03:05 +0000
committerrubidium <rubidium@openttd.org>2009-04-08 00:03:05 +0000
commitc0f82142185d866011b78f67f488089875ed99f9 (patch)
tree39cbf7923f2120133ca941dcff31b3854e2f3366 /src/network/core/udp.cpp
parent2a6e9288fd9e238c2f0b68243fced9e3cf794100 (diff)
downloadopenttd-c0f82142185d866011b78f67f488089875ed99f9.tar.xz
(svn r15972) -Codechange: remove unneeded parameter
Diffstat (limited to 'src/network/core/udp.cpp')
-rw-r--r--src/network/core/udp.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp
index 96ece0ace..4a5570002 100644
--- a/src/network/core/udp.cpp
+++ b/src/network/core/udp.cpp
@@ -41,11 +41,7 @@ bool NetworkUDPSocketHandler::Listen()
this->Close();
for (NetworkAddress *addr = this->bind.Begin(); addr != this->bind.End(); addr++) {
- addr->Listen(AF_UNSPEC, SOCK_DGRAM, &this->sockets);
- }
-
- for (SocketList::iterator s = this->sockets.Begin(); s != this->sockets.End(); s++) {
- DEBUG(net, 1, "[udp] listening on port %s", s->first.GetAddressAsString());
+ addr->Listen(SOCK_DGRAM, &this->sockets);
}
return this->sockets.Length() != 0;