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:
parent
eed8fa8d69
commit
80dfd11c90
@ -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) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user