Ejemplo n.º 1
0
 private static void Shutdown(bool crashed = false)
 {
     IsRunning = false;
     //Server.Stop();
     ServerShuttingDown.Raise(crashed);
     SettingsManager.Save(true);
     SettingsManager.Save();
     Log.Stop();
 }
Ejemplo n.º 2
0
 private static void Shutdown(bool crashed = false)
 {
     IsRunning = false;
     //Server.Stop();
     Server.Terminate();
     Thread.Sleep(100); // Safe sleep ?
     ServerShuttingDown.Raise(crashed);
     SettingsManager.Save(true);
     SettingsManager.Save();
     Log.Stop();
 }