mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
flotsam: also expire weakreferences
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user