mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-28 07:02:38 +00:00
Don't try to update right after registering
This commit is contained in:
parent
eac7b2e060
commit
bb8b279cd4
1 changed files with 7 additions and 3 deletions
10
src/mserv.c
10
src/mserv.c
|
@ -151,17 +151,21 @@ void RegisterServer(void)
|
|||
else
|
||||
con_state = MSCS_FAILED;
|
||||
}
|
||||
|
||||
time(&MSLastPing);
|
||||
}
|
||||
|
||||
static void UpdateServer(void)
|
||||
{
|
||||
if (!( con_state == MSCS_REGISTERED && HMS_update() ))
|
||||
if (( con_state == MSCS_REGISTERED && HMS_update() ))
|
||||
{
|
||||
time(&MSLastPing);
|
||||
}
|
||||
else
|
||||
{
|
||||
con_state = MSCS_FAILED;
|
||||
RegisterServer();
|
||||
}
|
||||
|
||||
time(&MSLastPing);
|
||||
}
|
||||
|
||||
static inline void SendPingToMasterServer(void)
|
||||
|
|
Loading…
Reference in a new issue