mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:23:00 +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:
parent
f5f0486e18
commit
93d7cdc509
@ -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)
|
||||
private bool isCorrectThread
|
||||
|
Loading…
Reference in New Issue
Block a user