瀏覽代碼

Oops had and where should be or

Eric Reed 10 年之前
父節點
當前提交
c499bf0e57
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
                         }