aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2014-09-15 13:27:49 -0400
committerEric Reed <ebr@mediabrowser3.com>2014-09-15 13:27:49 -0400
commite360f01f26550bcf61b4e9f0f6890737981a47ad (patch)
tree92c3edf8ba1d425f3ee2a1a54c84328087f8c012
parent5abbc841222edd4e48b72af05fe6a1caa64bf064 (diff)
Fix not found handling in connect server get
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index d92ca8323..e87828173 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -133,7 +133,9 @@ namespace MediaBrowser.Server.Implementations.Connect
}
catch (HttpException ex)
{
- if (!ex.StatusCode.HasValue || ex.StatusCode.Value != HttpStatusCode.NotFound || ex.StatusCode.Value != HttpStatusCode.Unauthorized)
+ var webEx = (WebException) ex.InnerException;
+
+ if (webEx != null && webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound)
{
throw;
}