OSSL: threading issue

0.9.1.0-post-fixes
UbitUmarov 2019-10-16 13:53:55 +01:00
parent 2abf375351
commit 43bf3af138
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (!m_FunctionPerms.TryGetValue(function, out perms)) if (!m_FunctionPerms.TryGetValue(function, out perms))
{ {
perms = new FunctionPerms(); perms = new FunctionPerms();
m_FunctionPerms[function] = perms;
string ownerPerm = m_osslconfig.GetString("Allow_" + function, ""); string ownerPerm = m_osslconfig.GetString("Allow_" + function, "");
string creatorPerm = m_osslconfig.GetString("Creators_" + function, ""); string creatorPerm = m_osslconfig.GetString("Creators_" + function, "");
@ -456,6 +455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// both empty fallback as disabled // both empty fallback as disabled
} }
} }
m_FunctionPerms.TryAdd(function,perms);
} }
AllowedControlFlags functionControl = perms.AllowedControl; AllowedControlFlags functionControl = perms.AllowedControl;