1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 13:47:24 +08:00

Fix DetachedBeatmapStore special condition for detecting resets from blocking all operations failing on empty databases

See https://discord.com/channels/188630481301012481/188630652340404224/1293309912591368244.
This commit is contained in:
Bartłomiej Dach 2024-10-08 23:13:27 +02:00
parent 1633cbdb66
commit b811b9baf6
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ namespace osu.Game.Database
{ {
if (changes == null) 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. // 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. // Additionally, user should not be at song select when realm is blocking all operations in the first place.