remove a forgotten gc collect on flotsam cache

This commit is contained in:
UbitUmarov
2020-07-23 23:11:59 +01:00
parent 6fafb7462d
commit bb56157c92

View File

@@ -992,13 +992,11 @@ namespace OpenSim.Region.CoreModules.Asset
string idstr = id.ToString();
if(!UpdateFileLastAccessTime(GetFileName(idstr)) && tryGetUncached)
{
cooldown += 50;
cooldown += 10;
m_AssetService.Get(idstr);
}
if (++cooldown > 500)
if (++cooldown > 100)
{
if(tryGetUncached)
GC.Collect();
Thread.Sleep(50);
cooldown = 0;
}