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 () => {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user