mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +00:00
Lock beatmaps for good measure
This commit is contained in:
parent
6af0629cc0
commit
ed3e78452e
@ -308,7 +308,10 @@ namespace osu.Game.Beatmaps
|
||||
var hash = hashable.ComputeSHA2Hash();
|
||||
|
||||
// check if this beatmap has already been imported and exit early if so.
|
||||
var beatmapSet = beatmaps.QueryAndPopulate<BeatmapSetInfo>(b => b.Hash == hash).FirstOrDefault();
|
||||
BeatmapSetInfo beatmapSet;
|
||||
lock (beatmaps)
|
||||
beatmapSet = beatmaps.QueryAndPopulate<BeatmapSetInfo>(b => b.Hash == hash).FirstOrDefault();
|
||||
|
||||
if (beatmapSet != null)
|
||||
{
|
||||
Undelete(beatmapSet);
|
||||
|
Loading…
Reference in New Issue
Block a user