OnConnectionClosed listeners, retrieve data from IClientAPI.SceneAgent rather than scanning all scene for the presence with the right id

Stop checking IsLoggingOut on these listeners, if called with a root agent then we always want to perform these actions.
This covers cases where the client is closed due to manual kick, simulator shutdown, etc.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-06-12 02:43:33 +01:00
parent b099f26376
commit 1b1f0a2d77
6 changed files with 43 additions and 70 deletions

View File

@@ -137,7 +137,7 @@ namespace OpenSim.Region.Framework.Scenes
}
}
if (fh.Client.IsLoggingOut)
if (!fh.Client.IsActive)
continue;
// m_log.DebugFormat(