1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:03:02 +08:00

Directly return task

This commit is contained in:
smoogipoo 2020-12-20 18:24:13 +09:00
parent 724e4b83fe
commit ba4307a74c

View File

@ -106,14 +106,14 @@ namespace osu.Game.Tests.Visual.RealtimeMultiplayer
return Task.CompletedTask;
}
public override async Task StartMatch()
public override Task StartMatch()
{
Debug.Assert(Room != null);
foreach (var user in Room.Users.Where(u => u.State == MultiplayerUserState.Ready))
ChangeUserState(user.UserID, MultiplayerUserState.WaitingForLoad);
await ((IMultiplayerClient)this).LoadRequested();
return ((IMultiplayerClient)this).LoadRequested();
}
}
}