From 2784920fa86d27d41c1f27bd2367435eb5e2a2cc Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 14 Apr 2016 16:11:26 +0200 Subject: [PATCH] removed some unneeded stuff. --- NadekoBot/Classes/Music/Song.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/NadekoBot/Classes/Music/Song.cs b/NadekoBot/Classes/Music/Song.cs index e4cac75c..a5bf151b 100644 --- a/NadekoBot/Classes/Music/Song.cs +++ b/NadekoBot/Classes/Music/Song.cs @@ -4,7 +4,6 @@ using System; using System.Diagnostics; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; @@ -110,18 +109,7 @@ namespace NadekoBot.Classes.Music internal async Task Play(IAudioClient voiceClient, CancellationToken cancelToken) { - var bufferTask = new ConfiguredTaskAwaitable(); - try - { - bufferTask = BufferSong(cancelToken).ConfigureAwait(false); - } - catch (Exception ex) - { - var clr = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine($"ERR BUFFER START : {ex.Message}\n{ex}"); - Console.ForegroundColor = clr; - } + var bufferTask = BufferSong(cancelToken).ConfigureAwait(false); var bufferAttempts = 0; const int waitPerAttempt = 500; var toAttemptTimes = SongInfo.ProviderType != MusicType.Normal ? 5 : 9;