mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Fix possible exception
This commit is contained in:
@ -326,7 +326,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
|||||||
{
|
{
|
||||||
// the room may not be left immediately after a disconnection due to async flow,
|
// the room may not be left immediately after a disconnection due to async flow,
|
||||||
// so checking the IsConnected status is also required.
|
// so checking the IsConnected status is also required.
|
||||||
if (client.Room == null || !client.IsConnected.Value)
|
if (client?.Room == null || !client.IsConnected.Value)
|
||||||
{
|
{
|
||||||
// room has not been created yet; exit immediately.
|
// room has not been created yet; exit immediately.
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
|
Reference in New Issue
Block a user