mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 08:27:23 +08:00
Fix collection modified during BlockAllOperations
if any subscriptions have been established
This commit is contained in:
parent
b660119de7
commit
948c28f415
@ -822,7 +822,7 @@ namespace osu.Game.Database
|
||||
// Before disposing the update context, clean up all subscriptions.
|
||||
// Note that in the case of realm notification subscriptions, this is not really required (they will be cleaned up by disposal).
|
||||
// In the case of custom subscriptions, we want them to fire before the update realm is disposed in case they do any follow-up work.
|
||||
foreach (var action in customSubscriptionsResetMap)
|
||||
foreach (var action in customSubscriptionsResetMap.ToArray())
|
||||
{
|
||||
action.Value?.Dispose();
|
||||
customSubscriptionsResetMap[action.Key] = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user