diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/RetryDelegatingHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/RetryDelegatingHandler.cs index 77bc244ee5..519c2e467f 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/RetryDelegatingHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/RetryDelegatingHandler.cs @@ -16,7 +16,7 @@ protected override async Task SendAsync(HttpRequestMessage { return await base.SendAsync(request, cancellationToken); } - catch (Exception exp) when (exp is not KnownException) + catch (Exception exp) when (exp is not KnownException || exp is ServerConnectionException) { lastExp = exp; await Task.Delay(delay, cancellationToken);