Skip to content

Commit e41fc08

Browse files
authored
Merge pull request #30 from music-assistant/25-support-stop-command-from-music-assistant
Gracefully exit on receipt of STOP command
2 parents ae7513f + b7fd794 commit e41fc08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mass.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,8 @@ pipe_metadata_read_cb(evutil_socket_t fd, short event, void *arg)
13031303
}
13041304
if (message & PIPE_METADATA_MSG_STOP) {
13051305
DPRINTF(E_DBG, L_PLAYER, "%s:Stopping playback from metadata pipe command\n", __func__);
1306-
player_playback_stop();
1306+
// We want to gracefully exit when we receive the STOP command.
1307+
event_base_loopbreak(evbase_main);
13071308
}
13081309

13091310
readd:

0 commit comments

Comments
 (0)