mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
also expire flotsam assets weakreferences on console expire ammand
This commit is contained in:
@@ -793,9 +793,6 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
|
||||
// Purge all files last accessed prior to this point
|
||||
DoCleanExpiredFiles(DateTime.Now - m_FileExpiration);
|
||||
|
||||
lock (weakAssetReferencesLock)
|
||||
weakAssetReferences = new Dictionary<string, WeakReference>();
|
||||
}
|
||||
|
||||
private void DoCleanExpiredFiles(DateTime purgeLine)
|
||||
@@ -826,6 +823,12 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
}
|
||||
}
|
||||
|
||||
lock (weakAssetReferencesLock)
|
||||
{
|
||||
weakAssetReferences = new Dictionary<string, WeakReference>();
|
||||
m_weakRefHits=0;
|
||||
}
|
||||
|
||||
lock (timerLock)
|
||||
{
|
||||
if (m_timerRunning)
|
||||
|
||||
Reference in New Issue
Block a user