flotsam: also expire weakreferences

master
UbitUmarov 2020-06-04 19:52:34 +01:00
parent 7a07731371
commit 7ef69edf33
1 changed files with 6 additions and 0 deletions

View File

@ -690,6 +690,12 @@ namespace OpenSim.Region.CoreModules.Asset
if (File.GetLastAccessTime(file) < purgeLine)
{
File.Delete(file);
string id = Path.GetFileName(file);
if(!String.IsNullOrEmpty(id))
{
lock (weakAssetReferencesLock)
weakAssetReferences.Remove(id);
}
}
}