mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user