Fix one more case of collection modification during enumeration

https://sentry.ppy.sh/share/issue/a61c27b2a63a4a6aa80e75873f9d87ca/
This commit is contained in:
Dean Herbert 2022-06-29 02:28:21 +09:00
parent 7c9c499e19
commit ecdb30d215
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ private Realm ensureUpdateRealm()
Logger.Log(@$"Opened realm ""{updateRealm.Config.DatabasePath}"" at version {updateRealm.Config.SchemaVersion}");
// Resubscribe any subscriptions
foreach (var action in customSubscriptionsResetMap.Keys)
foreach (var action in customSubscriptionsResetMap.Keys.ToArray())
registerSubscription(action);
}