1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 16:47:46 +08:00

Fix RoomManager attempting to part room when not online

This commit is contained in:
Bartłomiej Dach 2023-11-21 14:41:03 +09:00
parent 42fada578e
commit aa3ff151c0
No known key found for this signature in database

View File

@ -98,7 +98,9 @@ namespace osu.Game.Screens.OnlinePlay.Components
if (JoinedRoom.Value == null)
return;
api.Queue(new PartRoomRequest(joinedRoom.Value));
if (api.State.Value == APIState.Online)
api.Queue(new PartRoomRequest(joinedRoom.Value));
joinedRoom.Value = null;
}