mirror of
https://github.com/ppy/osu
synced 2025-02-23 05:57:20 +00:00
Lock unregistration for sanity
This commit is contained in:
parent
52cd906af6
commit
abf14f0982
@ -330,13 +330,16 @@ namespace osu.Game.Database
|
||||
/// </summary>
|
||||
private void unregisterAllSubscriptions()
|
||||
{
|
||||
foreach (var action in realmSubscriptionsResetMap.Values)
|
||||
action();
|
||||
|
||||
foreach (var action in customSubscriptionsResetMap)
|
||||
lock (contextLock)
|
||||
{
|
||||
action.Value?.Dispose();
|
||||
customSubscriptionsResetMap[action.Key] = null;
|
||||
foreach (var action in realmSubscriptionsResetMap.Values)
|
||||
action();
|
||||
|
||||
foreach (var action in customSubscriptionsResetMap)
|
||||
{
|
||||
action.Value?.Dispose();
|
||||
customSubscriptionsResetMap[action.Key] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user