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