diff options
author | UbitUmarov | 2016-12-29 00:47:02 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-29 00:47:02 +0000 |
commit | 7cf2e812233d767b5a3573b74792aa28d6d91988 (patch) | |
tree | 8475d1f82451fd1ee9e1abba8ae812ba90aeff46 /OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | |
parent | adjust camera collision detection checks for new FS (diff) | |
download | opensim-SC_OLD-7cf2e812233d767b5a3573b74792aa28d6d91988.zip opensim-SC_OLD-7cf2e812233d767b5a3573b74792aa28d6d91988.tar.gz opensim-SC_OLD-7cf2e812233d767b5a3573b74792aa28d6d91988.tar.bz2 opensim-SC_OLD-7cf2e812233d767b5a3573b74792aa28d6d91988.tar.xz |
reinforce gc.collect on region load to also do pending finalizers
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs index 870c0bb..1725eb4 100644 --- a/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs +++ b/OpenSim/Region/OptionalModules/Scripting/RegionReadyModule/RegionReadyModule.cs | |||
@@ -214,6 +214,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady | |||
214 | m_scene.EventManager.OnEmptyScriptCompileQueue -= OnEmptyScriptCompileQueue; | 214 | m_scene.EventManager.OnEmptyScriptCompileQueue -= OnEmptyScriptCompileQueue; |
215 | m_scene.LoginLock = false; | 215 | m_scene.LoginLock = false; |
216 | 216 | ||
217 | GC.Collect(); | ||
218 | GC.WaitForPendingFinalizers(); | ||
219 | GC.Collect(); | ||
220 | |||
217 | if (!m_scene.StartDisabled) | 221 | if (!m_scene.StartDisabled) |
218 | { | 222 | { |
219 | m_scene.LoginsEnabled = true; | 223 | m_scene.LoginsEnabled = true; |