reinforce gc.collect on region load to also do pending finalizers

This commit is contained in:
UbitUmarov
2016-12-29 00:47:02 +00:00
parent 73b2c82427
commit 7cf2e81223
2 changed files with 9 additions and 6 deletions

View File

@@ -214,6 +214,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
m_scene.EventManager.OnEmptyScriptCompileQueue -= OnEmptyScriptCompileQueue;
m_scene.LoginLock = false;
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
if (!m_scene.StartDisabled)
{
m_scene.LoginsEnabled = true;