From 43bf3af138f7074485c0828d47239850875cb780 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 16 Oct 2019 13:53:55 +0100 Subject: [PATCH] OSSL: threading issue --- .../Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index e891aeba2a..3360b8d721 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -348,7 +348,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api if (!m_FunctionPerms.TryGetValue(function, out perms)) { perms = new FunctionPerms(); - m_FunctionPerms[function] = perms; string ownerPerm = m_osslconfig.GetString("Allow_" + function, ""); string creatorPerm = m_osslconfig.GetString("Creators_" + function, ""); @@ -456,6 +455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // both empty fallback as disabled } } + m_FunctionPerms.TryAdd(function,perms); } AllowedControlFlags functionControl = perms.AllowedControl;