1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 17:42:54 +08:00

Merge pull request #30074 from peppy/lock-because

Fix usage of locked context without locking
This commit is contained in:
Bartłomiej Dach 2024-10-01 12:08:38 +02:00 committed by GitHub
commit afc34b2614
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,7 +183,14 @@ namespace osu.Game.Beatmaps
#region Beatmap
public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false;
public virtual bool BeatmapLoaded
{
get
{
lock (beatmapFetchLock)
return beatmapLoadTask?.IsCompleted ?? false;
}
}
public IBeatmap Beatmap
{