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

Waiting when disposing till the stop message was sent #635

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Waiting when disposing till the stop message was sent #635

merged 1 commit into from
Apr 22, 2024

Conversation

kimlukas
Copy link
Contributor

@kimlukas kimlukas commented Apr 19, 2024

If the subscription gets disposed and the _queueWebSocketRequest fails with an exception, there is the possibility to crash the application.

To be able to catch this exception, it would be helpful to not use async/await because async is not supported by Disposable.Create

fix #326

@rose-a rose-a merged commit 6681418 into graphql-dotnet:master Apr 22, 2024
1 check passed
@kimlukas kimlukas deleted the dev-disposed-WebSockets branch April 22, 2024 06:41
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.

Client app crashing with "Cannot access a disposed object." exception
2 participants