Skip to content

Commit

Permalink
Merge pull request #52 from Top-Cat/1.4
Browse files Browse the repository at this point in the history
Fix some exceptions
  • Loading branch information
Top-Cat committed Apr 3, 2016
2 parents 9cd355d + 53c742a commit 71a31b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SteamAuth/Models/Avatar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ private async void Store(Uri uri)

this.Get();
}
catch (HttpRequestException)
catch (Exception)
{
// No network, don't retry
// No network or no permission??, don't retry
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions UnofficialSteamAuthenticator/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
this.SteamGuardButton_Click(null, null);
}

if ((DateTime.UtcNow - this.account.DisplayCache).Days > 1)
if (this.account != null && (DateTime.UtcNow - this.account.DisplayCache).Days > 1)
{
UserSummary.GetSummaries(this.web, this.account.Session, new [] { this.account.Session.SteamID }, SummariesCallback);
UserSummary.GetSummaries(this.web, this.account.Session, new [] { this.account.Session.SteamID }, this.SummariesCallback);
}
}

Expand Down

0 comments on commit 71a31b3

Please sign in to comment.