From ca0ec0927521af2c316cd57dd55ddfa18a41caf4 Mon Sep 17 00:00:00 2001 From: Santiago Soto Date: Wed, 2 Apr 2025 19:12:47 -0300 Subject: [PATCH] Marcel's recommendation, remove the task --- music_assistant/providers/snapcast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/providers/snapcast/__init__.py b/music_assistant/providers/snapcast/__init__.py index 8ffda1f5..bc374f83 100644 --- a/music_assistant/providers/snapcast/__init__.py +++ b/music_assistant/providers/snapcast/__init__.py @@ -446,7 +446,7 @@ class SnapCastProvider(PlayerProvider): async def remove_player(self, player_id: str) -> None: """Remove the client from the snapserver when it is deleted.""" - self.mass.create_task(self._snapserver.delete_client(self._get_snapclient_id(player_id))) + self._snapserver.delete_client(self._get_snapclient_id(player_id)) async def cmd_volume_set(self, player_id: str, volume_level: int) -> None: """Send VOLUME_SET command to given player.""" -- 2.34.1