diff --git a/src/Microsoft.Devices.HardwareDevCenterManager/Utility/AuthorizationHandler.cs b/src/Microsoft.Devices.HardwareDevCenterManager/Utility/AuthorizationHandler.cs index c0eefe1..7fcdbd9 100644 --- a/src/Microsoft.Devices.HardwareDevCenterManager/Utility/AuthorizationHandler.cs +++ b/src/Microsoft.Devices.HardwareDevCenterManager/Utility/AuthorizationHandler.cs @@ -73,6 +73,12 @@ protected override async Task SendAsync(HttpRequestMessage { response = await base.SendAsync(clonedRequest, cancellationToken); } + catch (HttpRequestException) + { + //HDC request error, wait a bit and try again + Thread.Sleep(2000); + continue; + } catch (SocketException) { //HDC timed out, wait a bit and try again