Call the Cleanup when an agent logs out, when an agent leaves and just

before an agent logs in directly. Intentionally not calling this from MakeRoot
as that would mess up attachment transfer in teleport
avinationmerge
Melanie Thielker 2010-08-24 18:52:00 +02:00
parent 5a05de0eec
commit 512a13dbe7
1 changed files with 3 additions and 0 deletions

View File

@ -3199,6 +3199,7 @@ namespace OpenSim.Region.Framework.Scenes
m_log.Debug("[Scene] Beginning ClientClosed");
m_eventManager.TriggerClientClosed(agentID, this);
m_log.Debug("[Scene] Finished ClientClosed");
CleanDroppedAttachments();
}
catch (NullReferenceException)
{
@ -3442,6 +3443,8 @@ namespace OpenSim.Region.Framework.Scenes
if (vialogin)
{
CleanDroppedAttachments();
if (TestBorderCross(agent.startpos, Cardinals.E))
{
Border crossedBorder = GetCrossedBorder(agent.startpos, Cardinals.E);