mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
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
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue