mirror of https://github.com/ppy/osu
More hardening of `TestMultiplayerClient` to attempt to fix test failures
This commit is contained in:
parent
07929b440a
commit
e75ae4a37b
|
@ -208,6 +208,9 @@ public void ChangeUserBeatmapAvailability(int userId, BeatmapAvailability newBea
|
|||
|
||||
protected override async Task<MultiplayerRoom> JoinRoom(long roomId, string? password = null)
|
||||
{
|
||||
if (RoomJoined || ServerAPIRoom != null)
|
||||
throw new InvalidOperationException("Already joined a room");
|
||||
|
||||
roomId = clone(roomId);
|
||||
password = clone(password);
|
||||
|
||||
|
@ -260,6 +263,8 @@ protected override void OnRoomJoined()
|
|||
protected override Task LeaveRoomInternal()
|
||||
{
|
||||
RoomJoined = false;
|
||||
ServerAPIRoom = null;
|
||||
ServerRoom = null;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue