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