Skip to content

Commit

Permalink
Make sure the player always pauses.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdee committed Aug 29, 2014
1 parent d53509f commit 1c4c8b5
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ - (void)play:(UIBarButtonItem *)sender

- (void)pause:(UIBarButtonItem *)sender
{
if (musicPlayer.playbackState != MPMusicPlaybackStatePaused) {
[musicPlayer pause];
[self updateMusicPlayer:MPMusicPlaybackStatePaused];
}
[musicPlayer pause];
[self updateMusicPlayer:MPMusicPlaybackStatePaused];
}

// --- implementation of Foregrounder protocol ---
Expand Down

0 comments on commit 1c4c8b5

Please sign in to comment.