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
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public T Value
}
}
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