diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index a9e2780..9813756 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -86,7 +86,30 @@ namespace OpenSim.Framework.Communications.Cache | |||
86 | } | 86 | } |
87 | } | 87 | } |
88 | } | 88 | } |
89 | } | 89 | } |
90 | |||
91 | /// <summary> | ||
92 | /// Remove this user's profile cache. | ||
93 | /// </summary> | ||
94 | /// <param name="userID"></param> | ||
95 | /// <returns>true if the user was successfully removed, false otherwise</returns> | ||
96 | public bool RemoveUser(LLUUID userID) | ||
97 | { | ||
98 | lock (m_userProfiles) | ||
99 | { | ||
100 | if (m_userProfiles.ContainsKey(userID)) | ||
101 | { | ||
102 | m_userProfiles.Remove(userID); | ||
103 | return true; | ||
104 | } | ||
105 | else | ||
106 | { | ||
107 | m_log.WarnFormat("[USER CACHE]: Tried to remove the profile of user {0}, but this was not in the scene", userID); | ||
108 | } | ||
109 | } | ||
110 | |||
111 | return false; | ||
112 | } | ||
90 | 113 | ||
91 | /// <summary> | 114 | /// <summary> |
92 | /// Request the inventory data for the given user. This will occur asynchronously if running on a grid | 115 | /// Request the inventory data for the given user. This will occur asynchronously if running on a grid |