mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Some improvements ..
This commit is contained in:
parent
1909950409
commit
d630abb66a
11 changed files with 51 additions and 39 deletions
|
@ -8240,12 +8240,12 @@ namespace HISP.Server
|
|||
if (minuteTimer != null)
|
||||
minuteTimer.Dispose();
|
||||
}
|
||||
public static void ShutdownServer()
|
||||
public static void ShutdownServer(string shutdownReason = "No reason provided.")
|
||||
{
|
||||
Logger.InfoPrint("Server shutting down.");
|
||||
Logger.InfoPrint("Server shutting down; " + shutdownReason);
|
||||
try
|
||||
{
|
||||
GameClient.OnShutdown();
|
||||
GameClient.OnShutdown(shutdownReason);
|
||||
GameServer.OnShutdown();
|
||||
Database.OnShutdown();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue