Skip to content

Commit

Permalink
Fix not found handling in connect server get
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Reed committed Sep 15, 2014
1 parent b215230 commit b9bf0ce
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -133,7 +133,9 @@ private async void UpdateConnectInfo()
}
catch (HttpException ex)
{
if (!ex.StatusCode.HasValue || ex.StatusCode.Value != HttpStatusCode.NotFound || ex.StatusCode.Value != HttpStatusCode.Unauthorized)
var webEx = (WebException) ex.InnerException;

if (webEx != null && webEx.Status != WebExceptionStatus.ProtocolError && ((HttpWebResponse)webEx.Response).StatusCode != HttpStatusCode.NotFound)
{
throw;
}
Expand Down

0 comments on commit b9bf0ce

Please sign in to comment.