diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-01-05 14:44:23 -0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2016-07-14 13:22:50 +0300 |
commit | 08954918b26db93cf0c41dfa557ea88ac64016a6 (patch) | |
tree | 0047f8ef90bb63c2387e9cca00e4a8d6f5d7fd55 | |
parent | ecb0e5fc98ac91c53cc3cc6aeb5b77e268c0b767 (diff) | |
download | pacrunner-08954918b26db93cf0c41dfa557ea88ac64016a6.tar.gz |
gdbus/client: Always call ready callback
Call ready callback regardless of the reply to GetManagedObjects
since otherwise the user code will be left waiting forever when in fact
no proxy will be created.
-rw-r--r-- | gdbus/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdbus/client.c b/gdbus/client.c index 48711ae..068e778 100644 --- a/gdbus/client.c +++ b/gdbus/client.c @@ -1073,9 +1073,6 @@ static void parse_managed_objects(GDBusClient *client, DBusMessage *msg) dbus_message_iter_next(&dict); } - - if (client->ready) - client->ready(client, client->ready_data); } static void get_managed_objects_reply(DBusPendingCall *call, void *user_data) @@ -1096,6 +1093,9 @@ static void get_managed_objects_reply(DBusPendingCall *call, void *user_data) parse_managed_objects(client, reply); done: + if (client->ready) + client->ready(client, client->ready_data); + dbus_message_unref(reply); dbus_pending_call_unref(client->get_objects_call); |