mirror of https://github.com/ppy/osu
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 @@ protected Track GetVirtualTrack(double emptyLength = 0)
|
|||
|
||||
#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