mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00:00
Merge pull request #11268 from bdach/fix-room-song-select-stuck
Fix realtime multiplayer song select getting stuck after selecting invalid beatmap
This commit is contained in:
commit
1ac93d4eeb
@ -369,7 +369,6 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
||||
if (Room == null)
|
||||
return;
|
||||
|
||||
// Update a few properties of the room instantaneously.
|
||||
Schedule(() =>
|
||||
{
|
||||
if (Room == null)
|
||||
@ -377,6 +376,7 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
||||
|
||||
Debug.Assert(apiRoom != null);
|
||||
|
||||
// Update a few properties of the room instantaneously.
|
||||
Room.Settings = settings;
|
||||
apiRoom.Name.Value = Room.Settings.Name;
|
||||
|
||||
@ -385,12 +385,12 @@ namespace osu.Game.Online.RealtimeMultiplayer
|
||||
apiRoom.Playlist.Clear();
|
||||
|
||||
RoomChanged?.Invoke();
|
||||
|
||||
var req = new GetBeatmapSetRequest(settings.BeatmapID, BeatmapSetLookupType.BeatmapId);
|
||||
req.Success += res => updatePlaylist(settings, res);
|
||||
|
||||
api.Queue(req);
|
||||
});
|
||||
|
||||
var req = new GetBeatmapSetRequest(settings.BeatmapID, BeatmapSetLookupType.BeatmapId);
|
||||
req.Success += res => updatePlaylist(settings, res);
|
||||
|
||||
api.Queue(req);
|
||||
}
|
||||
|
||||
private void updatePlaylist(MultiplayerRoomSettings settings, APIBeatmapSet onlineSet)
|
||||
|
@ -65,7 +65,10 @@ namespace osu.Game.Screens.Multi.RealtimeMultiplayer
|
||||
if (t.IsCompletedSuccessfully)
|
||||
this.Exit();
|
||||
else
|
||||
{
|
||||
Logger.Log($"Could not use current beatmap ({t.Exception?.Message})", level: LogLevel.Important);
|
||||
Carousel.AllowSelection = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user