Skip to content

The Free Software Media System - Server Backend & API

Oops had and where should be or

Eric Reedc499bf0e57f9
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index e87828173f..0f2d2e3d5c 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -135,7 +135,7 @@ namespace MediaBrowser.Server.Implementations.Connect
{
var webEx = (WebException) ex.InnerException;
- if (webEx != null && webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound)
+ if (webEx == null || (webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound))
{
throw;
}