aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2016-08-04 17:39:10 +0100
committerUbitUmarov2016-08-04 17:39:10 +0100
commit5861355577f235e91f5dd5b9539a9487b5699bdf (patch)
tree8bc3c7843dcc05fdeb0cffa4d21014cd1db17d01 /OpenSim
parentfix a typo (diff)
downloadopensim-SC-5861355577f235e91f5dd5b9539a9487b5699bdf.zip
opensim-SC-5861355577f235e91f5dd5b9539a9487b5699bdf.tar.gz
opensim-SC-5861355577f235e91f5dd5b9539a9487b5699bdf.tar.bz2
opensim-SC-5861355577f235e91f5dd5b9539a9487b5699bdf.tar.xz
do friends recaching on MakeRoot for normal tps, delay it on crossings
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs13
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index c1c5613..aaa331b 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -217,7 +217,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
217 217
218 scene.EventManager.OnNewClient += OnNewClient; 218 scene.EventManager.OnNewClient += OnNewClient;
219 scene.EventManager.OnClientClosed += OnClientClosed; 219 scene.EventManager.OnClientClosed += OnClientClosed;
220// scene.EventManager.OnMakeRootAgent += OnMakeRootAgent; 220 scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
221 scene.EventManager.OnClientLogin += OnClientLogin; 221 scene.EventManager.OnClientLogin += OnClientLogin;
222 } 222 }
223 223
@@ -364,16 +364,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
364 364
365 public void IsNowRoot(ScenePresence sp) 365 public void IsNowRoot(ScenePresence sp)
366 { 366 {
367 RecacheFriends(sp.ControllingClient); 367 OnMakeRootAgent(sp);
368
369 lock (m_NeedsToNotifyStatus)
370 {
371 if (m_NeedsToNotifyStatus.Remove(sp.UUID))
372 {
373 // Inform the friends that this user is online. This can only be done once the client is a Root Agent.
374 StatusChange(sp.UUID, true);
375 }
376 }
377 } 368 }
378 369
379 public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client) 370 public virtual bool SendFriendsOnlineIfNeeded(IClientAPI client)