maybe fixed "not loading next song" issue

This commit is contained in:
Master Kwoth 2016-01-28 17:01:27 +01:00
parent f48265d419
commit 0120fb6812

View File

@ -19,8 +19,10 @@ namespace NadekoBot.Classes.Music {
Task.Run(async () => {
while (true) {
try {
if ((CurrentSong == null && SongQueue.Count>0) ||
CurrentSong?.State == StreamState.Completed) {
if (CurrentSong == null) {
if (SongQueue.Count > 0)
LoadNextSong();
} else if (CurrentSong.State == StreamState.Completed) {
LoadNextSong();
}
} catch (Exception e) {