mirror of
https://github.com/google/santa.git
synced 2026-01-15 09:17:59 -05:00
santactl/sync: Don't send empty rules array to daemon.
This commit is contained in:
@@ -113,14 +113,14 @@
|
||||
daemonConn:daemonConn
|
||||
completionHandler:handler];
|
||||
} else {
|
||||
[[daemonConn remoteObjectProxy] databaseRuleAddRules:syncState.downloadedRules
|
||||
cleanSlate:syncState.cleanSync
|
||||
reply:^{
|
||||
if (syncState.downloadedRules.count) {
|
||||
if (syncState.downloadedRules.count) {
|
||||
[[daemonConn remoteObjectProxy] databaseRuleAddRules:syncState.downloadedRules
|
||||
cleanSlate:syncState.cleanSync
|
||||
reply:^{
|
||||
LOGI(@"Added %d rule(s)", syncState.downloadedRules.count);
|
||||
}
|
||||
handler(YES);
|
||||
}];
|
||||
handler(YES);
|
||||
}];
|
||||
}
|
||||
}
|
||||
}
|
||||
}] resume];
|
||||
|
||||
Reference in New Issue
Block a user