Skip to content

Commit

Permalink
fix not being able to seek when player is paused
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jan 3, 2024
1 parent 4acd10f commit 3820e53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class PlayerRestHandler(
// we handle position differently for playing new tracks
playerUpdate.position.takeIfPresent { encodedTrack is Omissible.Omitted && identifier is Omissible.Omitted }
?.let {
if (player.isPlaying) {
if (player.track != null) {
player.seekTo(it)
SocketServer.sendPlayerUpdate(context, player)
}
Expand Down

0 comments on commit 3820e53

Please sign in to comment.