mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +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:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user