cosmetics

This commit is contained in:
UbitUmarov
2022-09-24 17:14:46 +01:00
parent 8fd4781c02
commit 5ef7878613
18 changed files with 123 additions and 85 deletions

View File

@@ -1687,10 +1687,9 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
}
// flush cache
UserProfileCacheEntry uce = null;
lock(m_profilesCache)
{
if(m_profilesCache.TryGetValue(remoteClient.AgentId, out uce) && uce != null)
if(m_profilesCache.TryGetValue(remoteClient.AgentId, out UserProfileCacheEntry uce) && uce != null)
{
uce.props = null;
uce.ClientsWaitingProps = null;