Example #1
0
            public async Task Die()
            {
                try
                {
                    await ReplyConfirmLocalized("shutting_down").ConfigureAwait(false);
                }
                catch
                {
                    // ignored
                }
                await Task.Delay(2000).ConfigureAwait(false);

                try { await _music.DestroyAllPlayers().ConfigureAwait(false); } catch { }
                Environment.Exit(0);
            }