mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09: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:
@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user