maybe fixed "not loading next song" issue
This commit is contained in:
parent
f48265d419
commit
0120fb6812
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user