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 () => { Task.Run(async () => {
while (true) { while (true) {
try { try {
if ((CurrentSong == null && SongQueue.Count>0) || if (CurrentSong == null) {
CurrentSong?.State == StreamState.Completed) { if (SongQueue.Count > 0)
LoadNextSong();
} else if (CurrentSong.State == StreamState.Completed) {
LoadNextSong(); LoadNextSong();
} }
} catch (Exception e) { } catch (Exception e) {