Fixed music crash on !!n !!s and !!d?
This commit is contained in:
parent
bd3caa8407
commit
70e5337d97
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user