Skip to content

Commit e5c182b

Browse files
authored
Merge pull request #512 from microsoft/release/update/250507083627
Resolve bug in Cancelation Token comparison
2 parents 7bc77a7 + 3715c79 commit e5c182b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GeneralTools/DataverseClient/Client/ServiceClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ internal async Task<OrganizationResponse> Command_ExecuteAsyncImpl(OrganizationR
18761876
catch (Exception ex)
18771877
{
18781878
bool isThrottled = false;
1879-
retry = ShouldRetry(req, ex, retryCount, out isThrottled) || !cancellationToken.IsCancellationRequested;
1879+
retry = ShouldRetry(req, ex, retryCount, out isThrottled) && !cancellationToken.IsCancellationRequested;
18801880
if (retry)
18811881
{
18821882
retryCount = await Utilities.RetryRequest(req, requestTrackingId, LockWait, logDt, _logEntry, SessionTrackingId, _disableConnectionLocking, _retryPauseTimeRunning, ex, errorStringCheck, retryCount, isThrottled, cancellationToken: cancellationToken).ConfigureAwait(false);

0 commit comments

Comments
 (0)