mirror of
https://github.com/opensim/opensim.git
synced 2026-07-18 21:55:37 +08:00
reinforce gc.collect on region load to also do pending finalizers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user