mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Add some global error handling
This commit is contained in:
@ -166,9 +166,17 @@ namespace osu.Game.Screens.Multi
|
||||
var r = listing[i];
|
||||
r.Position.Value = i;
|
||||
|
||||
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