Ensure all request failures are correctly handled during login

This commit is contained in:
Dean Herbert
2021-08-19 19:55:10 +09:00
parent b09105e5a7
commit a6b7ca1a4c
2 changed files with 9 additions and 9 deletions

View File

@ -309,7 +309,7 @@ namespace osu.Game.Online.API
if (IsLoggedIn) state.Value = APIState.Online;
failureCount = 0;
return true;
return req.CompletionState == APIRequestCompletionState.Completed;
}
catch (HttpRequestException re)
{
@ -381,7 +381,7 @@ namespace osu.Game.Online.API
}
}
public bool IsLoggedIn => localUser.Value.Id > 1;
public bool IsLoggedIn => localUser.Value.Id > 1; // TODO: should this also be true if attempting to connect?
public void Queue(APIRequest request)
{