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 { } }
private void Connections_OnCityDisconnected(CityConnection connection) { LOG.Warn("City connection panic, shutting down lots gracefully"); Lots.ShutdownByShard(connection.CityConfig.ID); }