* Fix for mantis 0000040 After client logout remote host closed connection on Simulator makes sim unuseable->'Closed Connection Called'

* I've fundamentally changed a few things, so this is experimental
* The routine that I used needs to be tested on Linux.  I don't expect it to cause a problem, but hey, it might.
* Child agents are still not logged off properly, so when the first set time out, the second set get logged off also, on the second log in if the second login is initiated before the first one fully times out.
This commit is contained in:
Teravus Ovares
2007-12-18 00:34:42 +00:00
parent 348e5b7648
commit afe63faa2e
6 changed files with 66 additions and 8 deletions

View File

@@ -1243,7 +1243,12 @@ namespace OpenSim.Region.Environment.Scenes
// Remove client agent from profile, so new logins will work
CommsManager.UserService.clearUserAgent(agentID);
}
public override void CloseAllAgents(uint circuitcode)
{
// Called by ClientView to kill all circuit codes
ClientManager.CloseAllAgents(circuitcode);
}
public void NotifyMyCoarseLocationChange()
{
ForEachScenePresence(delegate(ScenePresence presence) { presence.CoarseLocationChange(); });

View File

@@ -130,6 +130,8 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="agentID"></param>
public abstract void RemoveClient(LLUUID agentID);
public abstract void CloseAllAgents(uint circuitcode);
#endregion
/// <summary>