1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

Don't check whether the source realm was closed or not

Based on what we now know, this is not required, as long as there is
another realm context open on the same thread.
This commit is contained in:
Dean Herbert 2021-10-13 15:50:05 +09:00
parent f5f0486e18
commit 93d7cdc509

View File

@ -102,7 +102,7 @@ namespace osu.Game.Database
} }
} }
private bool originalDataValid => isCorrectThread && data.IsValid && !data.Realm.IsClosed; private bool originalDataValid => isCorrectThread && data.IsValid;
// this matches realm's internal thread validation (see https://github.com/realm/realm-dotnet/blob/903b4d0b304f887e37e2d905384fb572a6496e70/Realm/Realm/Native/SynchronizationContextScheduler.cs#L72) // this matches realm's internal thread validation (see https://github.com/realm/realm-dotnet/blob/903b4d0b304f887e37e2d905384fb572a6496e70/Realm/Realm/Native/SynchronizationContextScheduler.cs#L72)
private bool isCorrectThread private bool isCorrectThread