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.
This commit is contained in:
Justin Clark-Casey (justincc)
2011-02-25 01:16:47 +00:00
parent 2f5394e70d
commit 197cc3883f

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);
}
}
}