Skip to content

Commit

Permalink
Fix DetachedBeatmapStore special condition for detecting resets fro…
Browse files Browse the repository at this point in the history
…m blocking all operations failing on empty databases

See https://discord.com/channels/188630481301012481/188630652340404224/1293309912591368244.
  • Loading branch information
bdach committed Oct 8, 2024
1 parent 1633cbd commit b811b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Database/DetachedBeatmapStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private void beatmapSetsChanged(IRealmCollection<BeatmapSetInfo> sender, ChangeS
{
if (changes == null)
{
if (detachedBeatmapSets.Count > 0 && sender.Count == 0)
if (sender is EmptyRealmSet<BeatmapSetInfo>)
{
// Usually we'd reset stuff here, but doing so triggers a silly flow which ends up deadlocking realm.
// Additionally, user should not be at song select when realm is blocking all operations in the first place.
Expand Down

0 comments on commit b811b9b

Please sign in to comment.