mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
do friends recaching on MakeRoot for normal tps, delay it on crossings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user