Skip to content

Commit

Permalink
improved boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
subalterngames committed Jul 4, 2024
1 parent ad0304c commit 1555b74
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,12 @@ impl IO {
conn.set_music(state);
}
// No music is playing.
if matches!(
*conn.play_state.lock(),
PlayState::NotPlaying | PlayState::Decaying
) {
if state.input.is_playing
&& matches!(
*conn.play_state.lock(),
PlayState::NotPlaying | PlayState::Decaying
)
{
state.input.is_playing = false;
}
// We're not done yet.
Expand Down

0 comments on commit 1555b74

Please sign in to comment.