projects
/
music-assistant-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51906bc
)
Fix unload on snapcast (#1415)
author
Santiago Soto
<santiago@soto.uy>
Sat, 29 Jun 2024 09:45:55 +0000
(06:45 -0300)
committer
GitHub
<noreply@github.com>
Sat, 29 Jun 2024 09:45:55 +0000
(11:45 +0200)
music_assistant/server/providers/snapcast/__init__.py
patch
|
blob
|
history
diff --git
a/music_assistant/server/providers/snapcast/__init__.py
b/music_assistant/server/providers/snapcast/__init__.py
index e67d8d649c71fcef47a4b72dd704ea26680f0abf..9806e899ee3deea295657a9c07a644b3dea7a445 100644
(file)
--- a/
music_assistant/server/providers/snapcast/__init__.py
+++ b/
music_assistant/server/providers/snapcast/__init__.py
@@
-304,8
+304,9
@@
class SnapCastProvider(PlayerProvider):
async def unload(self) -> None:
"""Handle close/cleanup of the provider."""
- for client in self._snapserver.clients:
- await self.cmd_stop(client.identifier)
+ for snap_client_id in self._snapserver.clients:
+ player_id = self._get_ma_id(snap_client_id)
+ await self.cmd_stop(player_id)
self._snapserver.stop()
if self._snapserver_runner and not self._snapserver_runner.done():
self._snapserver_runner.cancel()