add graceful exit on SIGKILL/SIGTERM

This commit is contained in:
Li 2022-06-18 00:52:51 +12:00
parent e42b0bf782
commit ca39f783b9
6 changed files with 15 additions and 7 deletions

View file

@ -8258,6 +8258,7 @@ namespace HISP.Server
}
public static void ShutdownServer()
{
Logger.InfoPrint("Shutting down.");
GameClient.OnShutdown();
GameServer.OnShutdown();
Database.OnShutdown();