Merge pull request #11227 from smoogipoo/fix-incorrect-room-null-check

Fix incorrect joinedroom null checks
This commit is contained in:
Dean Herbert 2020-12-21 16:14:42 +09:00 committed by GitHub
commit 0c9b1c3a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ namespace osu.Game.Screens.Multi.Components
{ {
currentJoinRoomRequest?.Cancel(); currentJoinRoomRequest?.Cancel();
if (JoinedRoom == null) if (JoinedRoom.Value == null)
return; return;
api.Queue(new PartRoomRequest(joinedRoom.Value)); api.Queue(new PartRoomRequest(joinedRoom.Value));

View File

@ -45,7 +45,7 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
public override void PartRoom() public override void PartRoom()
{ {
if (JoinedRoom == null) if (JoinedRoom.Value == null)
return; return;
var joinedRoom = JoinedRoom.Value; var joinedRoom = JoinedRoom.Value;