diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index adad7d3..f1af15f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -653,9 +653,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
653 | SendCloseChildAgentConnections(avatar.UUID,avatar.GetKnownRegionList()); | 653 | SendCloseChildAgentConnections(avatar.UUID,avatar.GetKnownRegionList()); |
654 | } | 654 | } |
655 | // if (teleport success) // seems to be always success here | 655 | // if (teleport success) // seems to be always success here |
656 | // the user may change thier profile information in other region, | 656 | // the user may change their profile information in other region, |
657 | // so the userinfo in UserProfileCache is not reliable any more, delete it | 657 | // so the userinfo in UserProfileCache is not reliable any more, delete it |
658 | m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID); | 658 | if (avatar.Scene.NeedSceneCacheClear(avatar.UUID)) |
659 | m_commsProvider.UserProfileCacheService.RemoveUser(avatar.UUID); | ||
659 | m_log.InfoFormat("User {0} is going to another region, profile cache removed", avatar.UUID); | 660 | m_log.InfoFormat("User {0} is going to another region, profile cache removed", avatar.UUID); |
660 | } | 661 | } |
661 | else | 662 | else |