diff --git a/SlackNet/SlackApiClient.cs b/SlackNet/SlackApiClient.cs index c9a644b..60c4c50 100644 --- a/SlackNet/SlackApiClient.cs +++ b/SlackNet/SlackApiClient.cs @@ -246,7 +246,7 @@ private async Task WebApiRequest(Func createRequest, C } catch (SlackRateLimitException e) when (!DisableRetryOnRateLimit) { - await Task.Delay(e.RetryAfter ?? TimeSpan.FromSeconds(1)).ConfigureAwait(false); + await Task.Delay(e.RetryAfter ?? TimeSpan.FromSeconds(1), cancellationToken ?? CancellationToken.None).ConfigureAwait(false); } } }