mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 11:12:55 +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
|
#region Beatmap
|
||||||
|
|
||||||
public virtual bool BeatmapLoaded => beatmapLoadTask?.IsCompleted ?? false;
|
public virtual bool BeatmapLoaded
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
lock (beatmapFetchLock)
|
||||||
|
return beatmapLoadTask?.IsCompleted ?? false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public IBeatmap Beatmap
|
public IBeatmap Beatmap
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user