Move RealmRulesetStore initial work off incorrect thread

This commit is contained in:
Dean Herbert
2021-10-18 16:51:34 +09:00
parent a2dfb5fd8c
commit 72b4afdea6

View File

@ -102,7 +102,9 @@ namespace osu.Game.Stores
private void addMissingRulesets()
{
realmFactory.Context.Write(realm =>
using (var context = realmFactory.CreateContext())
{
context.Write(realm =>
{
var rulesets = realm.All<RealmRuleset>();
@ -172,6 +174,7 @@ namespace osu.Game.Stores
availableRulesets.AddRange(detachedRulesets);
});
}
}
private void loadFromAppDomain()
{