do friends recaching on MakeRoot for normal tps, delay it on crossings

LSLKeyTest
UbitUmarov 2016-08-04 17:39:10 +01:00
parent bb8e271081
commit 5861355577
1 changed files with 2 additions and 11 deletions

View File

@ -217,7 +217,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
scene.EventManager.OnNewClient += OnNewClient;
scene.EventManager.OnClientClosed += OnClientClosed;
// scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
scene.EventManager.OnClientLogin += OnClientLogin;
}
@ -364,16 +364,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
public void IsNowRoot(ScenePresence sp)
{
RecacheFriends(sp.ControllingClient);
lock (m_NeedsToNotifyStatus)
{
if (m_NeedsToNotifyStatus.Remove(sp.UUID))
{
// Inform the friends that this user is online. This can only be done once the client is a Root Agent.
StatusChange(sp.UUID, true);
}
}
OnMakeRootAgent(sp);
}
public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client)