diff options
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
| -rw-r--r-- | MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs index 48d674432..86aae959d 100644 --- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -818,7 +818,10 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager { if ((int) statusCode == 429) { - client.LastTimeout = DateTime.UtcNow; + throw new HttpException(response.StatusDescription) + { + IsTimedOut = true + }; } if (statusCode == HttpStatusCode.RequestEntityTooLarge) |
