mirror of
https://github.com/ppy/osu
synced 2025-01-05 05:39:49 +00:00
Clear working beatmap cache on save
This commit is contained in:
parent
ea7510d2f5
commit
4fe5ea8e92
@ -194,6 +194,10 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
UpdateFile(setInfo, setInfo.Files.Single(f => string.Equals(f.Filename, info.Path, StringComparison.OrdinalIgnoreCase)), stream);
|
||||
}
|
||||
|
||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == info.ID);
|
||||
if (working != null)
|
||||
workingCache.Remove(working);
|
||||
}
|
||||
|
||||
private readonly WeakList<WorkingBeatmap> workingCache = new WeakList<WorkingBeatmap>();
|
||||
|
Loading…
Reference in New Issue
Block a user