1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Ensure TryDisableCustomRulesetsCausing() never actually crashes itself

This commit is contained in:
Bartłomiej Dach 2024-03-25 11:34:29 +01:00
parent fb08d6816b
commit 4979305b2d
No known key found for this signature in database

View File

@ -163,6 +163,8 @@ namespace osu.Game.Rulesets
}
internal void TryDisableCustomRulesetsCausing(Exception exception)
{
try
{
var stackTrace = new StackTrace(exception);
@ -185,5 +187,10 @@ namespace osu.Game.Rulesets
}
}
}
catch (Exception ex)
{
Logger.Log($"Attempt to trace back crash to custom ruleset failed: {ex}");
}
}
}
}