Skip to content

Commit

Permalink
Pass CancellationToken to SetCancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
justindbaur committed Sep 5, 2024
1 parent 5c433eb commit ec3004d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/csharp/Bitwarden.Sdk/BitwardenLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ internal static Task<string> RunCommandAsync(string json, BitwardenSafeHandle ha
// This register delegate will never be called unless the token is cancelable
// therefore we know that the abortPointer is a valid pointer.
abort_and_free_handle((IntPtr)state);
tcs.SetCanceled();
tcs.SetCanceled(cancellationToken);
}, abortPointer);

return tcs.Task;
Expand Down

0 comments on commit ec3004d

Please sign in to comment.