remove a forgotten gc collect on flotsam cache

master
UbitUmarov 2020-07-23 23:11:59 +01:00
parent 6fafb7462d
commit bb56157c92
1 changed files with 2 additions and 4 deletions

View File

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