mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Don't try to update right after registering
This commit is contained in:
parent
717ab3526a
commit
6787f77304
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
|
else
|
||||||
con_state = MSCS_FAILED;
|
con_state = MSCS_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time(&MSLastPing);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void UpdateServer(void)
|
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;
|
con_state = MSCS_FAILED;
|
||||||
RegisterServer();
|
RegisterServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
time(&MSLastPing);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void SendPingToMasterServer(void)
|
static inline void SendPingToMasterServer(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue