diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-03-17 16:45:07 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-03-17 17:28:35 +0100 |
commit | bee5b30275907199e284625311bcd4fa6fc3097f (patch) | |
tree | bf77e1f022ae6d2e828fb4a0adbdba6572f79122 /telepathy-glib | |
parent | e8b9fc31f0f4fee539dd6248bde70c2c505a6df4 (diff) | |
download | telepathy-glib-bee5b30275907199e284625311bcd4fa6fc3097f.tar.gz |
tp_list_connection_managers_async: terminate properly if there is no CM
Fix fdo#68892.
Diffstat (limited to 'telepathy-glib')
-rw-r--r-- | telepathy-glib/connection-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c index 34b3889e0..2d7fe73f5 100644 --- a/telepathy-glib/connection-manager.c +++ b/telepathy-glib/connection-manager.c @@ -1918,6 +1918,12 @@ tp_list_connection_managers_got_names (TpDBusDaemon *bus_daemon, DEBUG ("Total of %" G_GSIZE_FORMAT " CMs to be prepared", list_context->cms_to_ready); + if (list_context->cms_to_ready == 0) + { + all_cms_prepared (list_context); + return; + } + for (i = 0; i < list_context->cms_to_ready; i++) { TpConnectionManager *cm = g_ptr_array_index (list_context->arr, i); |