mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Revert "Don't run UpdateServerInfo if server isn't initialized yet"
This reverts commit e69f747e5f
.
Fixes `shutdown` on the initial command line which is also used on CI.
This commit is contained in:
parent
1fbd847edd
commit
358735aadb
|
@ -273,7 +273,7 @@ CServer::CServer(): m_Register(false), m_RegSixup(true)
|
||||||
m_pGameServer = 0;
|
m_pGameServer = 0;
|
||||||
|
|
||||||
m_CurrentGameTick = 0;
|
m_CurrentGameTick = 0;
|
||||||
m_RunServer = false;
|
m_RunServer = 1;
|
||||||
|
|
||||||
for(int i = 0; i < 2; i++)
|
for(int i = 0; i < 2; i++)
|
||||||
{
|
{
|
||||||
|
@ -2075,9 +2075,6 @@ void CServer::ExpireServerInfo()
|
||||||
|
|
||||||
void CServer::UpdateServerInfo(bool Resend)
|
void CServer::UpdateServerInfo(bool Resend)
|
||||||
{
|
{
|
||||||
if(!m_RunServer)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++)
|
for(int i = 0; i < 3; i++)
|
||||||
for(int j = 0; j < 2; j++)
|
for(int j = 0; j < 2; j++)
|
||||||
CacheServerInfo(&m_ServerInfoCache[i * 2 + j], i, j);
|
CacheServerInfo(&m_ServerInfoCache[i * 2 + j], i, j);
|
||||||
|
@ -2295,8 +2292,6 @@ void CServer::InitRegister(CNetServer *pNetServer, IEngineMasterServer *pMasterS
|
||||||
|
|
||||||
int CServer::Run()
|
int CServer::Run()
|
||||||
{
|
{
|
||||||
m_RunServer = true;
|
|
||||||
|
|
||||||
m_AuthManager.Init();
|
m_AuthManager.Init();
|
||||||
|
|
||||||
if(g_Config.m_Debug)
|
if(g_Config.m_Debug)
|
||||||
|
|
Loading…
Reference in a new issue