santactl/sync: Don't send empty rules array to daemon.

This commit is contained in:
Russell Hancox
2015-05-11 16:27:02 -04:00
parent d53b04213a
commit 8cd9898cf3

View File

@@ -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];