1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-16 05:37:19 +08:00

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

View File

@ -130,7 +130,7 @@ namespace osu.Game.Database
{
Debug.Assert(ThreadSafety.IsUpdateThread);
if (dataIsFromUpdateThread)
if (dataIsFromUpdateThread && !data.Realm.IsClosed)
return;
dataIsFromUpdateThread = true;