From 34073607a2e3a0c2452603a48c3ab8d45aee8f3f Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Wed, 27 Feb 2008 17:41:42 +0000 Subject: * Turned Friends Module into a shared module (to comply with Scene.AddXmlRPCHandler being shared). * Fixed a null ref issue in Scene.Close() --- OpenSim/Region/Environment/Scenes/Scene.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 32136be..f6e3d82 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1466,7 +1466,12 @@ namespace OpenSim.Region.Environment.Scenes /// public override void RemoveClient(LLUUID agentID) { + bool childagentYN = false; ScenePresence avatar = GetScenePresence(agentID); + if (avatar != null) + { + childagentYN = avatar.IsChildAgent; + } try { if (avatar.IsChildAgent) @@ -1555,7 +1560,7 @@ namespace OpenSim.Region.Environment.Scenes } // Remove client agent from profile, so new logins will work - if (!avatar.IsChildAgent) + if (!childagentYN) { m_sceneGridService.ClearUserAgent(agentID); } -- cgit v1.1