From 70e5337d9767453c72780daa7107fc295007f20b Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 16 Oct 2016 01:11:20 +0200 Subject: [PATCH] Fixed music crash on !!n !!s and !!d? --- src/NadekoBot/Modules/Music/Classes/MusicControls.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Music/Classes/MusicControls.cs b/src/NadekoBot/Modules/Music/Classes/MusicControls.cs index fa4e2302..a11b63a5 100644 --- a/src/NadekoBot/Modules/Music/Classes/MusicControls.cs +++ b/src/NadekoBot/Modules/Music/Classes/MusicControls.cs @@ -111,7 +111,7 @@ namespace NadekoBot.Modules.Music.Classes if (CurrentSong == null) continue; - + OnStarted(this, CurrentSong); await CurrentSong.Play(audioClient, cancelToken); @@ -122,8 +122,9 @@ namespace NadekoBot.Modules.Music.Classes if (RepeatSong) AddSong(CurrentSong, 0); - + } + catch (OperationCanceledException) { } finally { if (!cancelToken.IsCancellationRequested)