In PresenceDetector.OnConnectionClose(), use the IsChildAgent check already available on IClientAPI.SceneAgent rather than retrieving it again by scanning all scenes.

This commit is contained in:
Justin Clark-Casey (justincc)
2012-06-12 01:23:40 +01:00
parent bab7dab4c5
commit 8c7149063b
4 changed files with 22 additions and 24 deletions

View File

@@ -490,12 +490,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// </summary>
public void Close()
{
IsActive = false;
m_log.DebugFormat(
"[CLIENT]: Close has been called for {0} attached to scene {1}",
Name, m_scene.RegionInfo.RegionName);
IsActive = false;
// Shutdown the image manager
ImageManager.Close();