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

Improve cancellation token handling in Utilities.cs #331

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

Ayymoss
Copy link
Collaborator

@Ayymoss Ayymoss commented Jul 6, 2024

A using statement was added to ensure proper disposal of the CancellationTokenSource. Additional error handling was also included to catch an OperationCanceledException and prevent it from causing unintended side effects. The client response is now properly disposed in the finally block.

A using statement was added to ensure proper disposal of the CancellationTokenSource. Additional error handling was also included to catch an OperationCanceledException and prevent it from causing unintended side effects. The client response is now properly disposed in the finally block.
@RaidMax RaidMax merged commit ee0b40d into develop Jul 7, 2024
9 checks passed
@RaidMax RaidMax deleted the feature/utility-fix branch July 7, 2024 00:30
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