mirror of https://github.com/ppy/osu
Fix disconnected-from-server multiplayer exit sequence being blocked by confirmation dialog
This commit is contained in:
parent
e70744ee37
commit
60e17fc2b7
|
@ -310,7 +310,9 @@ public override bool OnBackButton()
|
|||
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
if (client.Room == null)
|
||||
// the room may not be left immediately after a disconnection due to async flow,
|
||||
// so checking the IsConnected status is also required.
|
||||
if (client.Room == null || !client.IsConnected.Value)
|
||||
{
|
||||
// room has not been created yet; exit immediately.
|
||||
return base.OnExiting(next);
|
||||
|
|
Loading…
Reference in New Issue