mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix segfault when deleting lock
This commit is contained in:
parent
c009a2184f
commit
a63f210a01
|
@ -292,8 +292,6 @@ CServer::CServer()
|
|||
#endif
|
||||
|
||||
#if defined (CONF_SQL)
|
||||
m_GlobalSqlLock = lock();
|
||||
|
||||
for (int i = 0; i < MAX_SQLSERVERS; i++)
|
||||
{
|
||||
m_apSqlReadServers[i] = 0;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include <engine/shared/uuid_manager.h>
|
||||
|
||||
#include <base/tl/array.h>
|
||||
#include <base/tl/threading.h>
|
||||
|
||||
#include "authmanager.h"
|
||||
#include "name_ban.h"
|
||||
|
@ -92,6 +93,7 @@ class CServer : public IServer
|
|||
|
||||
#if defined(CONF_SQL)
|
||||
lock m_GlobalSqlLock;
|
||||
|
||||
CSqlServer *m_apSqlReadServers[MAX_SQLSERVERS];
|
||||
CSqlServer *m_apSqlWriteServers[MAX_SQLSERVERS];
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue