Skip to content

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
@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