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

Suppress warnings when the client has been stopped #80

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

bugadani
Copy link
Contributor

When the client is dropped, tokio can poll the select!-ed futures in a random order, and the client implementation can emit warnings if the WireRx, or the internal receiver are polled before the stopper is.

This PR ensures the cancel future is polled first, which doesn't let the streams run into errors if the client is stopped before dropping it.

@jamesmunns jamesmunns merged commit 0c94838 into jamesmunns:main Jan 20, 2025
1 check passed
@bugadani bugadani deleted the stop branch January 20, 2025 19:00
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