From: Marcel van der Veldt Date: Sun, 31 Dec 2023 11:59:30 +0000 (+0100) Subject: fix small typo X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=e9502ff6e88c4625ab340a6125fe325725e3be84;p=music-assistant-server.git fix small typo --- diff --git a/music_assistant/server/controllers/players.py b/music_assistant/server/controllers/players.py index 7345650b..83576ed4 100755 --- a/music_assistant/server/controllers/players.py +++ b/music_assistant/server/controllers/players.py @@ -568,8 +568,8 @@ class PlayerController(CoreController): 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)