Fix bug where having no maximum memory cache timeout would cause the flotsam asset cache to try using Double.MaxValue, which would cause the underlying OpenMetaverse.ExpiringCache to choke.

There is probably an underlying bug to fix in ExpiringCache.
0.7.1-dev
Justin Clark-Casey (justincc) 2011-02-25 01:16:47 +00:00
parent 2f5394e70d
commit 197cc3883f
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ namespace Flotsam.RegionModules.AssetCache
}
else
{
m_MemoryCache.AddOrUpdate(key, asset, Double.MaxValue);
m_MemoryCache.AddOrUpdate(key, asset, m_DefaultMemoryExpiration);
}
}
}