mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Verify database connection on interval (#9665)
This commit is contained in:
@@ -1219,6 +1219,11 @@ void ServerEnvironment::step(float dtime)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_database_check_interval.step(dtime, 10.0f)) {
|
||||
m_auth_database->pingDatabase();
|
||||
m_player_database->pingDatabase();
|
||||
m_map->pingDatabase();
|
||||
}
|
||||
/*
|
||||
Manage active block list
|
||||
*/
|
||||
|
Reference in New Issue
Block a user