Skip to content

Commit

Permalink
- Fixing bug with Music Player skipping to the next song when selecti…
Browse files Browse the repository at this point in the history
…ng the Stop option
  • Loading branch information
SaviorXTanren committed Sep 16, 2023
1 parent 77f2886 commit 66bd3ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MixItUp.WPF/Services/WindowsMusicPlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private async Task PlayBackground(WaveOutEvent waveOutEvent, int songIndex)
}
waveOutEvent.Dispose();

if (this.currentSongIndex == songIndex)
if (this.currentSongIndex == songIndex && this.State == MusicPlayerState.Playing)
{
await this.Next();
}
Expand Down

0 comments on commit 66bd3ac

Please sign in to comment.