mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 06:49:54 +08:00
Add some global error handling
This commit is contained in:
@@ -166,8 +166,16 @@ namespace osu.Game.Screens.Multi
|
||||
var r = listing[i];
|
||||
r.Position.Value = i;
|
||||
|
||||
update(r, r);
|
||||
addRoom(r);
|
||||
try
|
||||
{
|
||||
update(r, r);
|
||||
addRoom(r);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error(ex, $"Failed to update room: {r.Name.Value}.");
|
||||
rooms.Remove(r);
|
||||
}
|
||||
}
|
||||
|
||||
RoomsUpdated?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user