Skip to content

fix: stop the discord client updating state after close - #1162

Merged
rowkav09 merged 1 commit into
mainfrom
fix/discord-client-close-fences
Oct 10, 2026
Merged

rowkav09 merged 1 commit into
mainfrom
fix/discord-client-close-fences

Conversation

@rowkav09

Copy link
Copy Markdown
Member

Checks for close after each await in the connect and publish paths so a late result cannot change state or schedule a retry. 8 new tests, all fail without the change.

After close, an in-flight connect or publish could still mark the client connected or record a failure and schedule a clear retry. The client now checks for close after each await and returns without touching state.
@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 e7b7541 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