Skip to content

fix: destroy the discord client when login fails - #1163

Merged
rowkav09 merged 1 commit into
mainfrom
fix/discord-rpc-login-cleanup
Oct 10, 2026
Merged

rowkav09 merged 1 commit into
mainfrom
fix/discord-rpc-login-cleanup

Conversation

@rowkav09

Copy link
Copy Markdown
Member

A client whose login failed was never adopted, so close() could not release it. It is now destroyed on failure; cleanup errors do not replace the login error. 5 of the 6 new tests fail without the change.

A client whose login failed was never adopted, so close() could not release it. It is now destroyed on the failure path; cleanup errors are swallowed so they cannot delay or replace the original login error.
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@rowkav09
rowkav09 merged commit 30977b5 into main Oct 10, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant