diff --git a/music_assistant/server/controllers/players.py b/music_assistant/server/controllers/players.py index acc5f9811..7345650bf 100755 --- a/music_assistant/server/controllers/players.py +++ b/music_assistant/server/controllers/players.py @@ -576,7 +576,7 @@ async def cmd_sync(self, player_id: str, target_player: str) -> None: await player_provider.cmd_sync(player_id, target_player) child_player.hidden_by.add(target_player) # optimistically update the player to update the UI as fast as possible - player_provider.poll_player(player_id) + self.mass.create_task(player_provider.poll_player(player_id)) @api_command("players/cmd/unsync") @log_player_command @@ -606,7 +606,7 @@ async def cmd_unsync(self, player_id: str) -> None: player_provider = self.get_player_provider(player_id) await player_provider.cmd_unsync(player_id) # optimistically update the player to update the UI as fast as possible - player_provider.poll_player(player_id) + self.mass.create_task(player_provider.poll_player(player_id)) def _check_redirect(self, player_id: str) -> str: """Check if playback related command should be redirected."""