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:
parent
b2f0a37b18
commit
f27f701251
2 changed files with 35 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue