Marcel's recommendation, remove the task
authorSantiago Soto <santiago@soto.uy>
Wed, 2 Apr 2025 22:12:47 +0000 (19:12 -0300)
committerSantiago Soto <santiago@soto.uy>
Wed, 2 Apr 2025 22:12:47 +0000 (19:12 -0300)
music_assistant/providers/snapcast/__init__.py

index 8ffda1f5ae123bf77e241e728e53cb72d3068219..bc374f83521ef18debab3eebad79fe824df25d16 100644 (file)
@@ -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."""