* Turned Friends Module into a shared module (to comply with Scene.AddXmlRPCHandler being shared).

* Fixed a null ref issue in Scene.Close()
This commit is contained in:
Teravus Ovares
2008-02-27 17:41:42 +00:00
parent aac7c1dda5
commit 34073607a2
2 changed files with 73 additions and 13 deletions

View File

@@ -1466,7 +1466,12 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="agentID"></param>
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);
}