mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:57:24 +08:00
Complete connection once friends list is succesfully fetched
This commit is contained in:
parent
904a4daa98
commit
5d180753fa
@ -146,11 +146,15 @@ namespace osu.Game.Online.API
|
|||||||
failureCount = 0;
|
failureCount = 0;
|
||||||
|
|
||||||
var friendsReq = new GetFriendsRequest();
|
var friendsReq = new GetFriendsRequest();
|
||||||
friendsReq.Success += f => Friends.AddRange(f);
|
friendsReq.Success += f =>
|
||||||
handleRequest(friendsReq);
|
{
|
||||||
|
Friends.AddRange(f);
|
||||||
|
|
||||||
//we're connected!
|
//we're connected!
|
||||||
state.Value = APIState.Online;
|
state.Value = APIState.Online;
|
||||||
|
};
|
||||||
|
|
||||||
|
handleRequest(friendsReq);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!handleRequest(userReq))
|
if (!handleRequest(userReq))
|
||||||
|
Loading…
Reference in New Issue
Block a user