From d263a044b1ebb13477b2b391637ccc2da4368838 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 25 Nov 2007 04:52:14 +0000 Subject: * Added the ability to restart your individual sims from within them using the estate tools. * The sims properly restart, however they don't yet notify the existing avatars that they are up. To see the sim again, you'll need to log-out and back in until I can figure out how to get the proper data to the sims and to the avatar so they reconnect again. --- OpenSim/Region/ClientStack/UDPServer.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/ClientStack/UDPServer.cs') diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index 8314fc3..8f377c1 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs @@ -47,6 +47,7 @@ namespace OpenSim.Region.ClientStack protected EndPoint epSender; protected AsyncCallback ReceivedData; protected PacketServer m_packetServer; + protected ulong m_regionHandle; protected int listenPort; protected IScene m_localScene; @@ -66,6 +67,15 @@ namespace OpenSim.Region.ClientStack { m_localScene = value; m_packetServer.LocalScene = m_localScene; + m_regionHandle = m_localScene.RegionInfo.RegionHandle; + } + + } + public ulong RegionHandle + { + get + { + return m_regionHandle; } } @@ -115,6 +125,10 @@ namespace OpenSim.Region.ClientStack return; } + catch (System.ObjectDisposedException od) + { + return; + } int packetEnd = numBytes - 1; -- cgit v1.1