Fix usage of locked context without locking

Raised in the latest Rider EAP, seems valid enough.
This commit is contained in:
Dean Herbert 2024-10-01 18:01:06 +09:00
parent a9818854f4
commit 307cc5581d
No known key found for this signature in database
1 changed files with 8 additions and 1 deletions

View File

@ -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
{