From b9bf0ce1a048e16cfa56d6865f6ec8a2c56b1c07 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Mon, 15 Sep 2014 13:27:49 -0400 Subject: [PATCH] Fix not found handling in connect server get --- MediaBrowser.Server.Implementations/Connect/ConnectManager.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs index d92ca8323f..e87828173f 100644 --- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs +++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs @@ -133,7 +133,9 @@ private async void UpdateConnectInfo() } 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; }