1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Clean up files last

This commit is contained in:
Dean Herbert 2021-11-25 14:28:27 +09:00
parent 315e126497
commit bcdb73e1e8

View File

@ -107,8 +107,6 @@ namespace osu.Game.Database
private void cleanupPendingDeletions()
{
new RealmFileStore(this, storage).Cleanup();
using (var realm = CreateContext())
using (var transaction = realm.BeginWrite())
{
@ -124,6 +122,10 @@ namespace osu.Game.Database
transaction.Commit();
}
// clean up files after dropping any pending deletions.
// in the future we may want to only do this when the game is idle, rather than on every startup.
new RealmFileStore(this, storage).Cleanup();
}
/// <summary>