mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 12:27:26 +08:00
Fix usage of locked context without locking
Raised in the latest Rider EAP, seems valid enough.
This commit is contained in:
parent
a9818854f4
commit
307cc5581d
@ -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