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:
commit
afc34b2614
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user