Skip to content

Fix queue state loss on player re-register#3352

Merged
MarvinSchenkel merged 4 commits intodevfrom
fix/queue-loss-3
Mar 10, 2026
Merged

Fix queue state loss on player re-register#3352
MarvinSchenkel merged 4 commits intodevfrom
fix/queue-loss-3

Conversation

@maximmaxim345
Copy link
Member

@maximmaxim345 maximmaxim345 commented Mar 10, 2026

Fixes queues getting lost for players that get re-registered.
Particularly fixes the Sendspin Web Player loosing its queue.

Copilot AI review requested due to automatic review settings March 10, 2026 15:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an edge case where a player that disconnects/unregisters and later re-registers could resume with stale internal queue comparison/transition state, leading to stuck queues or incorrect track progression.

Changes:

  • Clear _prev_states entries for a queue when its player is removed from the registry.
  • Remove the queue from _transitioning_players when the player is removed, preventing stale “transition in progress” gating on re-register.

@maximmaxim345
Copy link
Member Author

Partially superseded #3340

Copilot AI review requested due to automatic review settings March 10, 2026 16:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@MarvinSchenkel MarvinSchenkel requested a review from Copilot March 10, 2026 16:24
Copy link
Contributor

@MarvinSchenkel MarvinSchenkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @maximmaxim345 🙏

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


You can also share your feedback on Copilot code review. Take the survey.

@MarvinSchenkel MarvinSchenkel merged commit f122c50 into dev Mar 10, 2026
14 checks passed
@MarvinSchenkel MarvinSchenkel deleted the fix/queue-loss-3 branch March 10, 2026 16:28
github-actions bot pushed a commit that referenced this pull request Mar 10, 2026
* fix: clear queue transient state on player unregister

* Remove redundant comments

* fix: cancel queued play_index timer on player removal
MarvinSchenkel pushed a commit that referenced this pull request Mar 12, 2026
* fix: clear queue transient state on player unregister

* Remove redundant comments

* fix: cancel queued play_index timer on player removal
ALERTua pushed a commit to ALERTua/fork_music_assistant_server that referenced this pull request Mar 12, 2026
* fix: clear queue transient state on player unregister

* Remove redundant comments

* fix: cancel queued play_index timer on player removal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants