mirror of https://github.com/ppy/osu
Fix `RealmLive` not refetching if update thread context was closed at some point
This commit is contained in:
parent
d76822b685
commit
56b06f34f0
|
@ -130,7 +130,7 @@ private void ensureDataIsFromUpdateThread()
|
||||||
{
|
{
|
||||||
Debug.Assert(ThreadSafety.IsUpdateThread);
|
Debug.Assert(ThreadSafety.IsUpdateThread);
|
||||||
|
|
||||||
if (dataIsFromUpdateThread)
|
if (dataIsFromUpdateThread && !data.Realm.IsClosed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dataIsFromUpdateThread = true;
|
dataIsFromUpdateThread = true;
|
||||||
|
|
Loading…
Reference in New Issue