mirror of
https://github.com/ppy/osu.git
synced 2025-03-04 01:22:54 +08:00
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 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
|
||||
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
Block a user