do friends recaching on MakeRoot for normal tps, delay it on crossings
parent
bb8e271081
commit
5861355577
|
@ -217,7 +217,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
|
|
||||||
scene.EventManager.OnNewClient += OnNewClient;
|
scene.EventManager.OnNewClient += OnNewClient;
|
||||||
scene.EventManager.OnClientClosed += OnClientClosed;
|
scene.EventManager.OnClientClosed += OnClientClosed;
|
||||||
// scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
|
scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
|
||||||
scene.EventManager.OnClientLogin += OnClientLogin;
|
scene.EventManager.OnClientLogin += OnClientLogin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,16 +364,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||||
|
|
||||||
public void IsNowRoot(ScenePresence sp)
|
public void IsNowRoot(ScenePresence sp)
|
||||||
{
|
{
|
||||||
RecacheFriends(sp.ControllingClient);
|
OnMakeRootAgent(sp);
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client)
|
public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client)
|
||||||
|
|
Loading…
Reference in New Issue