Start of polling.

This commit is contained in:
Ian Gulliver
2015-06-14 22:19:18 +00:00
parent 0c0b7713ed
commit 0a7adb63a6
2 changed files with 4 additions and 31 deletions

View File

@@ -196,7 +196,7 @@ static json_t *cosmo_command(const char *name, const json_t *arguments) {
// Takes ownership of commands.
static json_t *cosmo_send_rpc(cosmo *instance, json_t *commands) {
// Always poll.
json_array_append(commands, cosmo_command("poll", json_array()));
json_array_append_new(commands, cosmo_command("poll", json_array()));
char *request = cosmo_build_rpc(instance, commands);