diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs | 7 |
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 | ||