mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Ensure all request failures are correctly handled during login
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user