1
0
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:
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; 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))