1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Set Online state sooner in connection process

This isn't really required as such, but feels more correct. There was no
reason for it to wait for the friend population to complete before
deeming things to be "online".
This commit is contained in:
Dean Herbert 2022-08-11 14:35:55 +09:00
parent 65a1daf211
commit 7ec67c28b9

View File

@ -195,6 +195,8 @@ namespace osu.Game.Online.API
setLocalUser(user);
//we're connected!
state.Value = APIState.Online;
failureCount = 0;
};
@ -208,13 +210,7 @@ namespace osu.Game.Online.API
var friendsReq = new GetFriendsRequest();
friendsReq.Failure += _ => failConnectionProcess();
friendsReq.Success += res =>
{
friends.AddRange(res);
//we're connected!
state.Value = APIState.Online;
};
friendsReq.Success += res => friends.AddRange(res);
if (!handleRequest(friendsReq))
{