1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 10:02:59 +08:00

Leave the match screen when kicked

This commit is contained in:
Dean Herbert 2021-08-11 19:56:25 +09:00
parent 9b21ebd6d0
commit 31608a1bc6

View File

@ -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);
}