From 80cbd468ea4dca31c0bf28607f4ab3ed3963f765 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 8 May 2008 04:34:02 +0000 Subject: * Some refactorings. * Added shell of new Python scripting engine. Similar in design to the one used by Rex, but will be structured at a region rather than object level, also is a region module. --- ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ThirdParty/3Di/LoadBalancer') diff --git a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs index 4440db1..3ef0ef7 100644 --- a/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs +++ b/ThirdParty/3Di/LoadBalancer/LoadBalancerPlugin.cs @@ -1007,10 +1007,16 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer m_log.ErrorFormat("[SPLITSCENE] [LocalUpdatePacket] ScenePresence is missing... ({0})", agentID.ToString()); return; } - - if (((LLClientView) pre.ControllingClient).IsActive) + if (pre.ControllingClient is LLClientView) { - pre.ControllingClient.OutPacket(packet, throttlePacketType); + if (((LLClientView)pre.ControllingClient).IsActive) + { + ((LLClientView)pre.ControllingClient).OutPacket(packet, throttlePacketType); + } + else + { + PacketPool.Instance.ReturnPacket(packet); + } } else { -- cgit v1.1