From 1e1b2ab221851efc414678b7ea52ef2ca788ce9f Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 Jan 2010 10:40:07 -0800 Subject: * OMG! All but one references to UserProfileCacheService have been rerouted! * HG is seriously broken here * Compiles. Untested. --- OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs') 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 // if (teleport success) // seems to be always success here // the user may change their profile information in other region, // so the userinfo in UserProfileCache is not reliable any more, delete it + + // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE! if (avatar.Scene.NeedSceneCacheClear(avatar.UUID)) { - m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID); m_log.DebugFormat( "[SCENE COMMUNICATION SERVICE]: User {0} is going to another region, profile cache removed", avatar.UUID); @@ -1404,11 +1405,11 @@ namespace OpenSim.Region.Framework.Scenes agent.Scene.NotifyMyCoarseLocationChange(); // the user may change their profile information in other region, // so the userinfo in UserProfileCache is not reliable any more, delete it + // REFACTORING PROBLEM. Well, not a problem, but this method is HORRIBLE! if (agent.Scene.NeedSceneCacheClear(agent.UUID)) { - agent.Scene.CommsManager.UserProfileCacheService.RemoveUser(agent.UUID); m_log.DebugFormat( - "[SCENE COMM]: User {0} is going to another region, profile cache removed", agent.UUID); + "[SCENE COMM]: User {0} is going to another region", agent.UUID); } } -- cgit v1.1