Skip to content

Conversation

@balloob
Copy link
Contributor

@balloob balloob commented Dec 24, 2025

I was unable to do a clean shutdown in development when a Sendspin client was connected to the Sendspin server. This PR fixes it.

STR

  • Start MA
  • Connect sendspin client (I was using sendspin-js)
  • Shut down MA using ctrl+C
  • Hangs

With this PR: shuts down cleanly

Copilot AI review requested due to automatic review settings December 24, 2025 16:28
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

This PR fixes a shutdown hang issue in the Sendspin provider when clients are connected. The fix ensures that Music Assistant can perform a clean shutdown (e.g., via Ctrl+C) even when Sendspin clients are actively connected.

Key Changes:

  • Adds graceful client disconnection in the unload method before stopping the server

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 25, 2025 02:02
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.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MarvinSchenkel
Copy link
Contributor

@maximmaxim345 Could you add the 'backport to stable' label if this can safely go into the next stable patch release?

On shutdown MA already unregisters all players before unloading the
provider.
Copilot AI review requested due to automatic review settings January 2, 2026 10:20
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.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@maximmaxim345 maximmaxim345 merged commit 615d535 into dev Jan 2, 2026
18 checks passed
@maximmaxim345 maximmaxim345 deleted the sendspin-clean-shutdown branch January 2, 2026 10:30
github-actions bot pushed a commit that referenced this pull request Jan 2, 2026
I was unable to do a clean shutdown in development when a Sendspin client was connected to the Sendspin server. This PR fixes it. 

STR
- Start MA
- Connect sendspin client (I was using sendspin-js)
- Shut down MA using ctrl+C
- Hangs

With this PR: shuts down cleanly
MarvinSchenkel pushed a commit that referenced this pull request Jan 2, 2026
I was unable to do a clean shutdown in development when a Sendspin client was connected to the Sendspin server. This PR fixes it. 

STR
- Start MA
- Connect sendspin client (I was using sendspin-js)
- Shut down MA using ctrl+C
- Hangs

With this PR: shuts down cleanly
maximmaxim345 added a commit to Sendspin/aiosendspin that referenced this pull request Jan 5, 2026
Log each client disconnect attempt and warn on failures.

From music-assistant/server#2887
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.

5 participants