aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-04 23:24:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-10-04 23:24:24 -0400
commit26487dc455bf65f5232509aae5313bca092c5b6a (patch)
tree2f0d5b2bd48dfd2d78a61b5d1ad6efe6925bc156 /MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs
parent90a42dd03c623c9e2d48a663ef83ce6657236282 (diff)
rework people
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs')
-rw-r--r--MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs5
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)