Explorar el Código

Oops had and where should be or

Eric Reed hace 10 años
padre
commit
c499bf0e57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      MediaBrowser.Server.Implementations/Connect/ConnectManager.cs

+ 1 - 1
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;
                         }