summaryrefslogtreecommitdiff
path: root/src/ui_act.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_act.c')
-rw-r--r--src/ui_act.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 2cc3197..a4fc1f7 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -54,6 +54,10 @@ static inline void BarUiDoSkipSong (struct audioPlayer *player) {
assert (player != NULL);
if (player->mode != PLAYER_FINISHED_PLAYBACK && player->mode != PLAYER_FREED) {
+ /* unpause to make sure thread is able to reach cancellation point */
+ if (player->paused) {
+ pthread_kill (player->thread, BAR_PLAYER_SIGCONT);
+ }
pthread_cancel (player->thread);
}
}