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:
parent
fb08d6816b
commit
4979305b2d
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user