Skip to content

Commit

Permalink
Guard reacting to config changes only when app finished launching
Browse files Browse the repository at this point in the history
  • Loading branch information
miasma13 committed Nov 23, 2024
1 parent 913292b commit 12ee864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ import os.log
// Keep track of feature flag changes
subscriptionCookieManagerFeatureFlagCancellable = privacyConfigurationManager.updatesPublisher
.sink { [weak self, weak privacyConfigurationManager] in
guard let self, let privacyConfigurationManager else { return }
guard let self, !self.appIsLaunching, let privacyConfigurationManager else { return }

let isEnabled = privacyConfigurationManager.privacyConfig.isSubfeatureEnabled(PrivacyProSubfeature.setAccessTokenCookieForSubscriptionDomains)

Expand Down

0 comments on commit 12ee864

Please sign in to comment.