aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 8f3f6a6e6..08ad94096 100644
--- a/src/player.c
+++ b/src/player.c
@@ -97,9 +97,10 @@ static void set_current_song(Song *song)
static void player_command(enum player_command cmd)
{
pc.command = cmd;
- while (pc.command != PLAYER_COMMAND_NONE)
- /* FIXME: _nb() variant is probably wrong here, and everywhere... */
+ while (pc.command != PLAYER_COMMAND_NONE) {
notify_signal(&pc.notify);
+ wait_main_task();
+ }
}
void player_command_finished()