Add debug warning if music player starts pulling tricky shit again
This commit is contained in:
parent
6f23b60511
commit
f043ab906d
|
@ -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!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue