Skip to content

Commit

Permalink
Fix usage of locked context without locking
Browse files Browse the repository at this point in the history
Raised in the latest Rider EAP, seems valid enough.
  • Loading branch information
peppy committed Oct 1, 2024
1 parent a981885 commit 307cc55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion osu.Game/Beatmaps/WorkingBeatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 307cc55

Please sign in to comment.