1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

Lock unregistration for sanity

This commit is contained in:
Dean Herbert 2022-01-24 17:46:53 +09:00
parent 52cd906af6
commit abf14f0982

View File

@ -329,6 +329,8 @@ namespace osu.Game.Database
/// Subscriptions will still remain and will be re-subscribed when the realm context returns.
/// </summary>
private void unregisterAllSubscriptions()
{
lock (contextLock)
{
foreach (var action in realmSubscriptionsResetMap.Values)
action();
@ -339,6 +341,7 @@ namespace osu.Game.Database
customSubscriptionsResetMap[action.Key] = null;
}
}
}
private Realm createContext()
{