Fix async issue in SnapcastProvider (#1054)
authorSantiago Soto <81064015+SantiagoSotoC@users.noreply.github.com>
Tue, 30 Jan 2024 20:19:15 +0000 (17:19 -0300)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 20:19:15 +0000 (21:19 +0100)
Fix async issue in SnapCastProvider

music_assistant/server/providers/snapcast/__init__.py

index b624a2ae1eabe2217c5f0d52347d816040efd48d..fcd2f31aff60bf9436454ca036f4c87c186ee905 100644 (file)
@@ -193,7 +193,7 @@ class SnapCastProvider(PlayerProvider):
         """Handle close/cleanup of the provider."""
         for client in self._snapserver.clients:
             await self.cmd_stop(client.identifier)
-        self._snapserver.stop()
+        await self._snapserver.stop()
 
     async def get_player_config_entries(self, player_id: str) -> tuple[ConfigEntry]:
         """Return all (provider/player specific) Config Entries for the given player (if any)."""