diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-08-05 11:04:58 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-08-05 11:19:06 +0200 |
commit | 06acc6e3ff8a391bb99607716271b499f41b27f5 (patch) | |
tree | 8d3ff022ca0b95d716ae5ec698e140917afd649e /examples/client/contact-list.c | |
parent | 319f8960b8969df0251671a7433dbc0689ebd0fd (diff) |
contact-list examples: verify state is SUCCESS before getting the contact list
Diffstat (limited to 'examples/client/contact-list.c')
-rwxr-xr-x | examples/client/contact-list.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/client/contact-list.c b/examples/client/contact-list.c index 5cda23c61..60a5d9469 100755 --- a/examples/client/contact-list.c +++ b/examples/client/contact-list.c @@ -35,7 +35,9 @@ account_manager_prepared_cb (GObject *object, GPtrArray *contacts; guint i; - if (connection == NULL) + if (connection == NULL || + tp_connection_get_contact_list_state (connection) != + TP_CONTACT_LIST_STATE_SUCCESS) continue; contacts = tp_connection_dup_contact_list (connection); |