Add debug warning if music player starts pulling tricky shit again

This commit is contained in:
Nekojimi 2022-11-09 13:08:34 +00:00
parent 6f23b60511
commit f043ab906d
1 changed files with 4 additions and 1 deletions

View File

@ -42,8 +42,11 @@ public class QueueManager implements Consumer<Song>
{ {
jukeboxQueue.add(t); jukeboxQueue.add(t);
if (!handler.isPlaying()) if (!handler.isPlaying() || handler.getCurrentSong() == null)
handler.playNext(); handler.playNext();
if (handler.isPlaying() != (handler.getCurrentSong() == null))
System.err.println("WARNING: handler isPlaying violates contract! Something dumb going on!");
} }
/** /**