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:
parent
52cd906af6
commit
abf14f0982
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user