1
0
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:
Salman Ahmed 2020-12-17 13:44:30 +03:00
parent 904a4daa98
commit 5d180753fa

View File

@ -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))