mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +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;
|
||||
|
||||
var friendsReq = new GetFriendsRequest();
|
||||
friendsReq.Success += f => Friends.AddRange(f);
|
||||
handleRequest(friendsReq);
|
||||
friendsReq.Success += f =>
|
||||
{
|
||||
Friends.AddRange(f);
|
||||
|
||||
//we're connected!
|
||||
state.Value = APIState.Online;
|
||||
//we're connected!
|
||||
state.Value = APIState.Online;
|
||||
};
|
||||
|
||||
handleRequest(friendsReq);
|
||||
};
|
||||
|
||||
if (!handleRequest(userReq))
|
||||
|
Loading…
Reference in New Issue
Block a user