mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:12:57 +08:00
Leave the match screen when kicked
This commit is contained in:
parent
9b21ebd6d0
commit
31608a1bc6
@ -448,6 +448,13 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
|
||||
private void onRoomUpdated()
|
||||
{
|
||||
// may happen if the client is kicked or otherwise removed from the room.
|
||||
if (client.Room == null)
|
||||
{
|
||||
Schedule(this.Exit);
|
||||
return;
|
||||
}
|
||||
|
||||
Scheduler.AddOnce(UpdateMods);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user