1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

auth stuff is now saved only when modified

This commit is contained in:
Perttu Ahola 2011-05-31 00:23:39 +03:00
parent 41f07328c8
commit db36771c63
3 changed files with 25 additions and 2 deletions

View file

@ -1728,7 +1728,8 @@ void Server::AsyncRunStep()
ScopeProfiler sp(&g_profiler, "Server: saving stuff");
// Auth stuff
m_authmanager.save();
if(m_authmanager.isModified())
m_authmanager.save();
// Map
JMutexAutoLock lock(m_env_mutex);