fix cache.cs (used on parcels info)

BulletSim2017
UbitUmarov 2017-08-29 07:38:52 +01:00
parent 396ab1424c
commit 22c7450363
1 changed files with 14 additions and 10 deletions

View File

@ -390,9 +390,10 @@ namespace OpenSim.Framework
Object data = fetch(index);
if (data == null && (m_Flags & CacheFlags.CacheMissing) == 0)
return null;
if (data == null)
{
if((m_Flags & CacheFlags.CacheMissing) != 0)
{
lock (m_Index)
{
CacheItemBase missing = new CacheItemBase(index);
@ -402,6 +403,9 @@ namespace OpenSim.Framework
m_Lookup[index] = missing;
}
}
}
return null;
}
Store(index, data);
return data;