mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 05:39:53 +08:00
Fix disconnected-from-server multiplayer exit sequence being blocked by confirmation dialog
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user