mirror of https://github.com/ppy/osu
Move deletion to catch instead of finally
This commit is contained in:
parent
deb87517d0
commit
b9b5779251
|
@ -154,11 +154,11 @@ private void prepareLocalCache()
|
|||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue