Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SS14.Launcher/ConfigConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class ConfigConstants
// Refresh login tokens if they're within <this much> of expiry.
public static readonly TimeSpan TokenRefreshThreshold = TimeSpan.FromDays(15);

// If the user leaves the launcher running for absolute ages, this is how often we'll update his login tokens.
// If the user leaves the launcher running for absolute ages, this is how often we'll update their login tokens.
public static readonly TimeSpan TokenRefreshInterval = TimeSpan.FromDays(7);

// The amount of time before a server is considered timed out for status checks.
Expand Down
2 changes: 1 addition & 1 deletion SS14.Launcher/Models/Logins/LoginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public LoginManager(DataManager cfg, AuthApi authApi)
public async Task Initialize()
{
// Set up timer so that if the user leaves their launcher open for a month or something
// his tokens don't expire.
// their tokens don't expire.
_timer = DispatcherTimer.Run(() =>
{
async void Impl()
Expand Down
3 changes: 3 additions & 0 deletions SS14.Launcher/Utility/UrlFallbackSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ private static async Task<HttpResponseMessage> AttemptConnection(
cancel
).ConfigureAwait(false);

if ((int)response.StatusCode >= 500)
throw new HttpRequestException($"Server returned {response.StatusCode} for {message.RequestUri}");

return response;
}

Expand Down
Loading