From 9fec575b3eaaee7d0b5126498662a8ebbc4f61ca Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 10 Apr 2008 10:27:03 +0000 Subject: * Made it safe again to use the restart button from the estate tools and the restart console command. * It looks ugly on the console.. but it's really safe.. and restores some memory. --- OpenSim/Region/ClientStack/UDPServer.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/ClientStack/UDPServer.cs') diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 59083c7..3d1512f 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs @@ -208,10 +208,14 @@ namespace OpenSim.Region.ClientStack // Stupid I know.. // but Flusing the buffer would be even more stupid... so, we're stuck with this ugly method. } + catch (SocketException e2) { m_log.Error("[UDPSERVER]: " + e2.ToString()); } + catch (ObjectDisposedException) + { + } //return; } @@ -264,6 +268,9 @@ namespace OpenSim.Region.ClientStack m_log.Error("[UDPSERVER]: " + e5.ToString()); } } + catch (ObjectDisposedException) + { + } if (packet != null) { -- cgit v1.1