Fixed deadlock in auth and ban on linux

master
jachoo 2012-02-21 22:58:42 +01:00
parent c3d2a0da95
commit e6920fa912
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ AuthManager::~AuthManager()
void AuthManager::init(Database* database, const std::string& authfilepath)
{
JMutexAutoLock lock(m_mutex);
//JMutexAutoLock lock(m_mutex);
if(database!=NULL) m_database = database;
if(authfilepath!="") m_authfilepath = authfilepath;

View File

@ -44,7 +44,7 @@ BanManager::~BanManager()
void BanManager::init(Database* database, const std::string& file)
{
JMutexAutoLock lock(m_mutex);
//JMutexAutoLock lock(m_mutex);
if(database!=NULL)m_database = database;
if(file!="")m_banfilepath = file;