1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 02:33:02 +08:00

Remove unnecessary extra task

Further testing shows continuations also run before the .Wait() returns.
This commit is contained in:
smoogipoo 2021-10-15 13:27:54 +09:00
parent eed8fa8d69
commit 80dfd11c90

View File

@ -359,8 +359,6 @@ namespace osu.Game.Online.Multiplayer
if (Room == null) if (Room == null)
return; return;
await Task.Run(async () =>
{
await PopulateUser(user).ConfigureAwait(false); await PopulateUser(user).ConfigureAwait(false);
Scheduler.Add(() => Scheduler.Add(() =>
@ -377,7 +375,6 @@ namespace osu.Game.Online.Multiplayer
UserJoined?.Invoke(user); UserJoined?.Invoke(user);
RoomUpdated?.Invoke(); RoomUpdated?.Invoke();
}); });
}).ConfigureAwait(false);
} }
Task IMultiplayerClient.UserLeft(MultiplayerRoomUser user) => Task IMultiplayerClient.UserLeft(MultiplayerRoomUser user) =>