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