forked from Mirrorlandia_minetest/minetest
Remove a misleading MutexAutoLock in l_to_table
The temporary is immediately destructed, so the mutex isn't locked after the line. Removed the lock, because the Settings member-functions used by push_settings_table lock the mutex and are thread-safe, but would cause a dead-lock.
This commit is contained in:
parent
252c79d53a
commit
d9f478cbfb
@ -332,7 +332,6 @@ int LuaSettings::l_to_table(lua_State* L)
|
||||
NO_MAP_LOCK_REQUIRED;
|
||||
LuaSettings* o = checkObject<LuaSettings>(L, 1);
|
||||
|
||||
MutexAutoLock(o->m_settings->m_mutex);
|
||||
push_settings_table(L, o->m_settings);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user