Skip to content

Commit

Permalink
mark player as not powered on buffer underrun
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Aug 5, 2023
1 parent 9d52c91 commit 7c00294
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music_assistant/server/providers/slimproto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7c00294

Please sign in to comment.