diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-15 23:33:30 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-09-15 23:33:30 -0400 |
| commit | a35f62a4a4fb8281c9eb660b16d836a15248a0bf (patch) | |
| tree | 1ddf09a9e81be2b3ca78d0a2303bc998540f980c /MediaBrowser.Server.Implementations/Connect/ConnectManager.cs | |
| parent | cbbc7269fa8b62af60f199cb0c69a6b10d0b5b54 (diff) | |
fixes #295 - Add play to vlc option
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect/ConnectManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Connect/ConnectManager.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs index 0f2d2e3d5..6479b6f9d 100644 --- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs +++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs @@ -133,9 +133,8 @@ namespace MediaBrowser.Server.Implementations.Connect } catch (HttpException ex) { - var webEx = (WebException) ex.InnerException; - - if (webEx == null || (webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound)) + if (!ex.StatusCode.HasValue || ex.StatusCode.Value != HttpStatusCode.NotFound || + ex.StatusCode.Value != HttpStatusCode.Unauthorized) { throw; } |
