소스 검색

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