mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 07:07:55 +09: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.
|
/// Subscriptions will still remain and will be re-subscribed when the realm context returns.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void unregisterAllSubscriptions()
|
private void unregisterAllSubscriptions()
|
||||||
|
{
|
||||||
|
lock (contextLock)
|
||||||
{
|
{
|
||||||
foreach (var action in realmSubscriptionsResetMap.Values)
|
foreach (var action in realmSubscriptionsResetMap.Values)
|
||||||
action();
|
action();
|
||||||
@ -339,6 +341,7 @@ namespace osu.Game.Database
|
|||||||
customSubscriptionsResetMap[action.Key] = null;
|
customSubscriptionsResetMap[action.Key] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private Realm createContext()
|
private Realm createContext()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user