Add handling of realm disposed exceptions

This commit is contained in:
Dean Herbert
2022-07-22 00:14:30 +09:00
parent 94cd641fb4
commit b3aa496ba7

View File

@ -46,6 +46,14 @@ namespace osu.Game
Logger.Log("Beginning background beatmap processing..");
checkForOutdatedStarRatings();
processBeatmapSetsWithMissingMetrics();
}).ContinueWith(t =>
{
if (t.Exception?.InnerException is ObjectDisposedException)
{
Logger.Log("Finished background aborted during shutdown");
return;
}
Logger.Log("Finished background beatmap processing!");
});
}