fixed a bug where the database manager removed itself from the plugins listener
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401207
This commit is contained in:
parent
f2630470c4
commit
76c34cc268
@ -77,13 +77,12 @@ void DBManager::OnSourceModLevelChange(const char *mapName)
|
||||
}
|
||||
}
|
||||
m_pConfigLock->Unlock();
|
||||
|
||||
g_PluginSys.RemovePluginsListener(this);
|
||||
}
|
||||
|
||||
void DBManager::OnSourceModShutdown()
|
||||
{
|
||||
KillWorkerThread();
|
||||
g_PluginSys.RemovePluginsListener(this);
|
||||
m_pConfigLock->DestroyThis();
|
||||
m_pThinkLock->DestroyThis();
|
||||
m_pQueueLock->DestroyThis();
|
||||
@ -313,7 +312,7 @@ void DBManager::RemoveDriver(IDBDriver *pDriver)
|
||||
if (m_drivers[i] == pDriver)
|
||||
{
|
||||
m_drivers.erase(m_drivers.iterAt(i));
|
||||
return;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user