예제 #1
0
        private async void Connections_OnCityDisconnected(CityConnection connection)
        {
            LOG.Warn("City connection lost... if it's not back in 30 seconds all its lots will be closed!");
            await Task.Delay(30000);

            try
            {
                if (!connection.Connected)
                {
                    Lots.ShutdownByShard(connection.CityConfig.ID);
                }
            } catch
            {
            }
        }
예제 #2
0
 private void Connections_OnCityDisconnected(CityConnection connection)
 {
     LOG.Warn("City connection panic, shutting down lots gracefully");
     Lots.ShutdownByShard(connection.CityConfig.ID);
 }