Skip to content

Commit

Permalink
Snapcast fix lost state when stop (#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoSotoC authored Nov 2, 2024
1 parent d182398 commit dc493ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music_assistant/server/providers/snapcast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ async def _streamer() -> None:
while stream.status != "idle":
await asyncio.sleep(0.25)
player.state = PlayerState.IDLE
player.elapsed_time = time.time() - player.elapsed_time_last_updated
self.mass.players.update(player_id)
self._set_childs_state(player_id)
finally:
Expand Down

0 comments on commit dc493ce

Please sign in to comment.