1
0
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:
Dean Herbert 2024-10-01 18:01:06 +09:00
parent a9818854f4
commit 307cc5581d
No known key found for this signature in database

View File

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