1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Make server disconnect lingering clients

This commit is contained in:
sfan5 2024-01-05 16:27:06 +01:00
parent b2f0a37b18
commit f27f701251
2 changed files with 35 additions and 5 deletions

View file

@ -181,8 +181,8 @@ enum ClientState
CS_Disconnecting,
CS_Denied,
CS_Created,
CS_AwaitingInit2,
CS_HelloSent,
CS_AwaitingInit2,
CS_InitDone,
CS_DefinitionsSent,
CS_Active,
@ -550,7 +550,10 @@ private:
// Environment
ServerEnvironment *m_env;
float m_print_info_timer;
float m_print_info_timer = 0;
float m_check_linger_timer = 0;
static const char *statenames[];
static constexpr int LINGER_TIMEOUT = 10;
};