1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 05:47:20 +08:00

Move deletion to catch instead of finally

This commit is contained in:
Dean Herbert 2020-05-03 09:31:56 +09:00
parent deb87517d0
commit b9b5779251

View File

@ -154,11 +154,11 @@ namespace osu.Game.Beatmaps
catch (Exception ex)
{
Logger.Log($"{nameof(BeatmapUpdateQueue)}'s online cache extraction failed: {ex}", LoggingTarget.Database);
File.Delete(cacheFilePath);
}
finally
{
File.Delete(compressedCacheFilePath);
File.Delete(cacheFilePath);
}
};