Fix `RealmLive` not refetching if update thread context was closed at some point

This commit is contained in:
Dean Herbert 2022-01-21 02:10:14 +09:00
parent d76822b685
commit 56b06f34f0
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ private void ensureDataIsFromUpdateThread()
{
Debug.Assert(ThreadSafety.IsUpdateThread);
if (dataIsFromUpdateThread)
if (dataIsFromUpdateThread && !data.Realm.IsClosed)
return;
dataIsFromUpdateThread = true;