From 54151e58d6628dcf43d097889b42baf435fd08c0 Mon Sep 17 00:00:00 2001 From: sprocket-9 Date: Sat, 6 Dec 2025 19:23:57 +0000 Subject: [PATCH] Fix race condition when transitioning from plugin source (#2758) --- music_assistant/controllers/players/player_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/controllers/players/player_controller.py b/music_assistant/controllers/players/player_controller.py index aec1624c..ade539ac 100644 --- a/music_assistant/controllers/players/player_controller.py +++ b/music_assistant/controllers/players/player_controller.py @@ -889,7 +889,7 @@ class PlayerController(CoreController): with suppress(PlayerCommandFailed, RuntimeError): # just try to stop (regardless of state) await self.cmd_stop(player_id) - await asyncio.sleep(0.5) # small delay to allow stop to process + await asyncio.sleep(2) # small delay to allow stop to process # check if source is a pluginsource # in that case the source id is the instance_id of the plugin provider if plugin_prov := self.mass.get_provider(source): -- 2.34.1