From: Marcel van der Veldt Date: Wed, 26 Mar 2025 23:43:05 +0000 (+0100) Subject: Fix: ensure a fresh playback session starts when configuring player settings X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e8d7d564bba58f5daa8bd82b922d98b8182f0592;p=music-assistant-server.git Fix: ensure a fresh playback session starts when configuring player settings --- diff --git a/music_assistant/controllers/players.py b/music_assistant/controllers/players.py index a7d35f65..240e92a3 100644 --- a/music_assistant/controllers/players.py +++ b/music_assistant/controllers/players.py @@ -1348,6 +1348,8 @@ class PlayerController(CoreController): # if the PlayerQueue was playing, restart playback # TODO: add property to ConfigEntry if it requires a restart of playback on change elif not player_disabled and resume_queue and resume_queue.state == PlayerState.PLAYING: + # always stop first to ensure the player uses the new config + await self.mass.player_queues.stop(resume_queue.queue_id) self.mass.call_later(1, self.mass.player_queues.resume, resume_queue.queue_id) # check for group memberships that need to be updated if player_disabled and player.active_group and player_provider: