aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
authorDiva Canto2010-01-10 10:40:07 -0800
committerDiva Canto2010-01-10 10:40:07 -0800
commit1e1b2ab221851efc414678b7ea52ef2ca788ce9f (patch)
tree29b6aa80e54a9c18529ae14e7d185fe67582d151 /OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
parentAdd a "LockedOut" flag to allow locking a region out via the grid server. (diff)
downloadopensim-SC_OLD-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.zip
opensim-SC_OLD-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.gz
opensim-SC_OLD-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.bz2
opensim-SC_OLD-1e1b2ab221851efc414678b7ea52ef2ca788ce9f.tar.xz
* OMG! All but one references to UserProfileCacheService have been rerouted!
* HG is seriously broken here * Compiles. Untested.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index 8b14f61..ce3c16c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -967,9 +967,10 @@ namespace OpenSim.Region.Framework.Scenes
967 // if (teleport success) // seems to be always success here 967 // if (teleport success) // seems to be always success here
968 // the user may change their profile information in other region, 968 // the user may change their profile information in other region,
969 // so the userinfo in UserProfileCache is not reliable any more, delete it 969 // so the userinfo in UserProfileCache is not reliable any more, delete it
970
971 // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE!
970 if (avatar.Scene.NeedSceneCacheClear(avatar.UUID)) 972 if (avatar.Scene.NeedSceneCacheClear(avatar.UUID))
971 { 973 {
972 m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID);
973 m_log.DebugFormat( 974 m_log.DebugFormat(
974 "[SCENE COMMUNICATION SERVICE]: User {0} is going to another region, profile cache removed", 975 "[SCENE COMMUNICATION SERVICE]: User {0} is going to another region, profile cache removed",
975 avatar.UUID); 976 avatar.UUID);
@@ -1404,11 +1405,11 @@ namespace OpenSim.Region.Framework.Scenes
1404 agent.Scene.NotifyMyCoarseLocationChange(); 1405 agent.Scene.NotifyMyCoarseLocationChange();
1405 // the user may change their profile information in other region, 1406 // the user may change their profile information in other region,
1406 // so the userinfo in UserProfileCache is not reliable any more, delete it 1407 // so the userinfo in UserProfileCache is not reliable any more, delete it
1408 // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE!
1407 if (agent.Scene.NeedSceneCacheClear(agent.UUID)) 1409 if (agent.Scene.NeedSceneCacheClear(agent.UUID))
1408 { 1410 {
1409 agent.Scene.CommsManager.UserProfileCacheService.RemoveUser(agent.UUID);
1410 m_log.DebugFormat( 1411 m_log.DebugFormat(
1411 "[SCENE COMM]: User {0} is going to another region, profile cache removed", agent.UUID); 1412 "[SCENE COMM]: User {0} is going to another region", agent.UUID);
1412 } 1413 }
1413 } 1414 }
1414 1415