public static void Stop() { Output.WriteLine("Cerrando servidor..."); bool_0 = false; SqlDatabaseManager.Uninitialize(); boomBangTcpListener_0.Dispose(); boomBangTcpListener_0 = null; Output.WriteLine("Adiós!!!"); Environment.Exit(0); }
public static void Stop() { Output.WriteLine("Stopping Server..."); bool_0 = false; SqlDatabaseManager.Uninitialize(); boomBangTcpListener_0.Dispose(); boomBangTcpListener_0 = null; Output.WriteLine("Bye!"); Environment.Exit(0); }
public static void Stop() { Output.WriteLine("Stopping Snowlight..."); mAlive = false; // Will destroy any threads looping for Program.Alive. SqlDatabaseManager.Uninitialize(); mServer.Dispose(); mServer = null; Output.WriteLine("Bye!"); Environment.Exit(0); }
public static void Stop() { Output.WriteLine(Localization.GetValue("core.uninit")); mAlive = false; // Will destroy any threads looping for Program.Alive. using (SqlDatabaseClient MySqlClient = SqlDatabaseManager.GetClient()) { MySqlClient.ExecuteNonQuery("UPDATE server_statistics SET sval = '0' WHERE skey = 'online_state' LIMIT 1"); } SqlDatabaseManager.Uninitialize(); mServer.Dispose(); mServer = null; Environment.Exit(0); }