1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

Forcefully part room when multiplayer exits

This commit is contained in:
smoogipoo 2019-10-30 14:42:14 +09:00
parent b6457f0ce9
commit f56d9fe50c

View File

@ -212,6 +212,8 @@ namespace osu.Game.Screens.Multi
public override bool OnExiting(IScreen next)
{
roomManager.PartRoom();
if (screenStack.CurrentScreen != null && !(screenStack.CurrentScreen is LoungeSubScreen))
{
screenStack.Exit();