From 7c0029403b648f01f8ab9a111c92a201b7abb57d Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 5 Aug 2023 04:02:05 +0200 Subject: [PATCH] mark player as not powered on buffer underrun --- music_assistant/server/providers/slimproto/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/music_assistant/server/providers/slimproto/__init__.py b/music_assistant/server/providers/slimproto/__init__.py index d26238b79..2134e799e 100644 --- a/music_assistant/server/providers/slimproto/__init__.py +++ b/music_assistant/server/providers/slimproto/__init__.py @@ -627,6 +627,7 @@ async def _handle_output_underrun(self, client: SlimClient) -> None: player = self.mass.players.get(client.player_id) self.logger.error("Player %s ran out of buffer", player.display_name) player.state = PlayerState.IDLE + player.powered = False self.mass.players.update(client.player_id) def _handle_client_sync(self, client: SlimClient) -> None: