From 1410210b844d4b613b3166f57cdc63cfd4148ed0 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 5 Mar 2008 22:00:41 +0000 Subject: * Four more warnings, etc etc. --- OpenSim/Region/ClientStack/UDPServer.cs | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'OpenSim/Region/ClientStack/UDPServer.cs') diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 395037f..fe2e805 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs @@ -364,23 +364,12 @@ namespace OpenSim.Region.ClientStack public void ServerListener() { uint newPort = listenPort; - m_log.Info("[SERVER]: Opening UDP socket on " + listenIP.ToString() + " " + newPort + ".");// Allow alternate ports: " + Allow_Alternate_Port.ToString()); - try - { - ServerIncoming = new IPEndPoint(listenIP, (int)newPort); - Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); - Server.Bind(ServerIncoming); - listenPort = newPort; - } - catch (Exception ex) - { - // We are not looking for alternate ports? - //if (!Allow_Alternate_Port) - throw (ex); + m_log.Info("[SERVER]: Opening UDP socket on " + listenIP.ToString() + " " + newPort + "."); - // We are looking for alternate ports! - //m_log.Info("[SERVER]: UDP socket on " + listenIP.ToString() + " " + listenPort.ToString() + " is not available, trying next."); - } + ServerIncoming = new IPEndPoint(listenIP, (int)newPort); + Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); + Server.Bind(ServerIncoming); + listenPort = newPort; m_log.Info("[SERVER]: UDP socket bound, getting ready to listen"); -- cgit v1.1