From e9502ff6e88c4625ab340a6125fe325725e3be84 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 31 Dec 2023 12:59:30 +0100 Subject: [PATCH] fix small typo --- music_assistant/server/controllers/players.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/music_assistant/server/controllers/players.py b/music_assistant/server/controllers/players.py index 7345650bf..83576ed45 100755 --- a/music_assistant/server/controllers/players.py +++ b/music_assistant/server/controllers/players.py @@ -568,8 +568,8 @@ async def cmd_sync(self, player_id: str, target_player: str) -> None: return # player already synced, unsync first await self.cmd_unsync(child_player.player_id) - # stop child player if it is currently playing - if child_player.state == PlayerState.PLAYING: + elif child_player.state == PlayerState.PLAYING: + # stop child player if it is currently playing await self.cmd_stop(player_id) # all checks passed, forward command to the player provider player_provider = self.get_player_provider(player_id)