Exemple #1
0
        private void HandleShutdown(string module, string[] cmd)
        {
            lock (m_bots)
            {
                int connectedBots = m_bots.Count(b => b.ConnectionState == ConnectionState.Connected);

                if (connectedBots > 0)
                {
                    MainConsole.Instance.Output("Please disconnect {0} connected bots first", null, connectedBots);
                    return;
                }
            }

            MainConsole.Instance.Output("Shutting down");

            m_serverStatsCollector.Close();

            Environment.Exit(0);
        }
Exemple #2
0
 public virtual void Shutdown()
 {
     m_serverStatsCollector.Close();
     ShutdownSpecific();
 }