Commit 9e671dcc authored by kalin-toshev's avatar kalin-toshev
Browse files

Remove translator from the global pool before Lua state is closed

Translator should be removed from the global dictionary (map) before LuaState is closed to avoid situations, where a new state is created (at the same address) before the old one is removed from the dictionary (in multithreaded environment).
parent 9c566231
......@@ -329,8 +329,8 @@ end
return;
if (! CheckNull.IsNull(luaState)) {
LuaCore.LuaClose (luaState);
ObjectTranslatorPool.Instance.Remove (luaState);
LuaCore.LuaClose (luaState);
}
}
......@@ -1150,4 +1150,4 @@ end
}
#endregion
}
}
\ No newline at end of file
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment