-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When Music Machine tries to play the second song in the playlist, after having playing through the first song and recieving a song vote during that time, always leads to a TimeoutException in Jotify.
Steps to reproduce
- Start up Music Machine
- Vote on song, song starts playing immediately
- Vote on second song
- Wait for first song to finish
- Music Machine tries to start playback on second song in playlist
- The following exception occurs
Exception in thread "Thread-4" java.lang.NullPointerException
at de.felixbruns.jotify.api.player.SpotifyInputStream.channelData(Unknown Source)
at de.felixbruns.jotify.api.protocol.channel.Channel.process(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.commandReceived(Unknown Source)
at de.felixbruns.jotify.api.protocol.Protocol.receivePacket(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.run(Unknown Source)
at java.lang.Thread.run(Thread.java:637)
java.util.concurrent.TimeoutException: Timeout while waiting for data.
at de.felixbruns.jotify.api.protocol.channel.ChannelCallback.get(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyInputStream.requestKey(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyInputStream.(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyOggPlayer.play(Unknown Source)
at de.felixbruns.jotify.api.JotifyConnection.play(Unknown Source)
at com.markupartist.nollbit.musicmachine.server.MusicMachinePlaybackAdapter.playTrack(Unknown Source)
at com.markupartist.nollbit.musicmachine.server.MusicMachinePlaybackAdapter.playbackFinished(Unknown Source)
at de.felixbruns.jotify.api.player.SpotifyOggPlayer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:637)