1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

Fix crash on attempting to join lobby using key press during a pending join

Closes https://github.com/ppy/osu/issues/12040.
This commit is contained in:
Dean Herbert 2021-03-26 14:49:02 +09:00
parent 51ab1dace4
commit 7faca766e4

View File

@ -170,7 +170,9 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
private void joinRequested(Room room)
{
Debug.Assert(joiningRoomOperation == null);
if (joiningRoomOperation != null)
return;
joiningRoomOperation = ongoingOperationTracker?.BeginOperation();
RoomManager?.JoinRoom(room, r =>