mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user