mirror of
https://github.com/ppy/osu
synced 2025-01-11 00:29:30 +00:00
Merge pull request #11227 from smoogipoo/fix-incorrect-room-null-check
Fix incorrect joinedroom null checks
This commit is contained in:
commit
0c9b1c3a73
@ -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));
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user