Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealer: Improve disconnect #1420

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

photovoltex
Copy link
Member

@photovoltex photovoltex commented Dec 14, 2024

Disconnecting now only handles disconnecting and not pausing/stopping. But because it feels unnatural to call disconnect on the Spirc and not having the player pause, the method now provides an additional option to explicitly pause.

improves the behavior in #1419 but doesn't fix it

@roderickvd
Copy link
Member

I agree, it makes sense to have that argument.

@roderickvd roderickvd requested a review from Copilot December 15, 2024 20:22

Choose a reason for hiding this comment

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

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

@roderickvd roderickvd self-requested a review December 15, 2024 20:26
roderickvd
roderickvd previously approved these changes Dec 15, 2024
connect/src/spirc.rs Outdated Show resolved Hide resolved

Choose a reason for hiding this comment

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

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

Comments suppressed due to low confidence (1)

connect/src/spirc.rs:652

  • The new behavior of pausing during disconnect should be covered by a test to ensure it works as expected.
if pause {
Copy link
Member

@roderickvd roderickvd left a comment

Choose a reason for hiding this comment

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

LGTM

@photovoltex
Copy link
Member Author

photovoltex commented Dec 17, 2024

@roderickvd do you want to merge it or should I do it myself? (i unlinked the issue, as this adjustment doesn't seem to fix it and so is just an improvement)

@roderickvd
Copy link
Member

Go right ahead 👍

@photovoltex photovoltex merged commit 755aa2e into librespot-org:dev Dec 17, 2024
13 checks passed
@photovoltex photovoltex deleted the improve-dealer-disconnect branch December 17, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants