Skip to content

Commit

Permalink
fixes issue with skip not working reliably (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdb authored Nov 18, 2023
1 parent 27f65c8 commit 7e7a68a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions hifirs/src/player/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,7 @@ pub async fn skip(new_position: u32, force: bool) -> Result<()> {
}
}

if !is_ready() {
ready().await?;
}
ready().await?;

if let Some(next_track_to_play) = state.skip_track(new_position).await {
let list = state.track_list();
Expand Down

0 comments on commit 7e7a68a

Please sign in to comment.