From 7ee59f835afbe1ba1a37ccab1e57d1e3733e9581 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sun, 31 Dec 2023 12:57:12 +0100 Subject: [PATCH] fix 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 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."""