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

fix: don't throw on cancellation #124

Merged
merged 3 commits into from
May 5, 2022
Merged

fix: don't throw on cancellation #124

merged 3 commits into from
May 5, 2022

Conversation

CodeCasterNL
Copy link
Contributor

@CodeCasterNL CodeCasterNL commented May 4, 2022

When the cancellationtoken is cancelled during the execution of a request, an OperationCanceledException is thrown. The finally blocks then tried to dispose a null responseMessage, throwing a NullReferenceException instead.

@pyrocumulus
Copy link
Owner

Looking good! Funny how I apparently never have experienced this issue myself, it seems so obvious and likely. I'll review tonight and merge the PR 👍🏻

@pyrocumulus pyrocumulus merged commit f97abd8 into pyrocumulus:develop May 5, 2022
@CodeCasterNL CodeCasterNL deleted the feature/CancellationToken branch May 5, 2022 20:47
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