mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Add handling of realm disposed exceptions
This commit is contained in:
@ -46,6 +46,14 @@ namespace osu.Game
|
|||||||
Logger.Log("Beginning background beatmap processing..");
|
Logger.Log("Beginning background beatmap processing..");
|
||||||
checkForOutdatedStarRatings();
|
checkForOutdatedStarRatings();
|
||||||
processBeatmapSetsWithMissingMetrics();
|
processBeatmapSetsWithMissingMetrics();
|
||||||
|
}).ContinueWith(t =>
|
||||||
|
{
|
||||||
|
if (t.Exception?.InnerException is ObjectDisposedException)
|
||||||
|
{
|
||||||
|
Logger.Log("Finished background aborted during shutdown");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Logger.Log("Finished background beatmap processing!");
|
Logger.Log("Finished background beatmap processing!");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user