Skip to content

Commit

Permalink
Configurator: Apply config updates in non-daemon processes (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox committed Jan 18, 2023
1 parent 2d74f36 commit 1e88b88
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/common/SNTConfigurator.m
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,6 @@ - (id)forcedConfigValueForKey:(NSString *)key {
}

- (void)startWatchingDefaults {
// Only com.google.santa.daemon should listen.
NSString *processName = [[NSProcessInfo processInfo] processName];
if (![processName isEqualToString:@"com.google.santa.daemon"]) return;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(defaultsChanged:)
name:NSUserDefaultsDidChangeNotification
Expand Down

0 comments on commit 1e88b88

Please sign in to comment.