Run cleanup tasks only on startup via manual calls

This commit is contained in:
Dean Herbert
2017-10-17 19:58:33 +09:00
parent b9d0fb96ed
commit e4a066dc5f
5 changed files with 8 additions and 18 deletions

View File

@ -40,12 +40,6 @@ namespace osu.Game.Beatmaps
}
}
protected override void StartupTasks()
{
base.StartupTasks();
cleanupPendingDeletions();
}
/// <summary>
/// Add a <see cref="BeatmapSetInfo"/> to the database.
/// </summary>
@ -136,7 +130,7 @@ namespace osu.Game.Beatmaps
return true;
}
private void cleanupPendingDeletions()
public override void Cleanup()
{
var context = GetContext();