aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@gmail.com>2013-06-10 01:33:31 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2013-06-10 11:30:49 -0300
commit274799cb084b62488a8abf56b6cb1c46304d2da2 (patch)
treee31f06e2fd41093edcf74465cb3248717757fa56
parentRevert "continuation of ascent/descent fix by tom - make textblock work too." (diff)
downloadefl-274799cb084b62488a8abf56b6cb1c46304d2da2.tar.gz
eldbus: Fix crash when eldbus is shutdown and we have a live connection of type address
Also show info about each connection of type address live.
-rw-r--r--src/lib/eldbus/eldbus_core.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/eldbus/eldbus_core.c b/src/lib/eldbus/eldbus_core.c
index 25bde7edfc..a7af40fc9e 100644
--- a/src/lib/eldbus/eldbus_core.c
+++ b/src/lib/eldbus/eldbus_core.c
@@ -221,8 +221,16 @@ eldbus_shutdown(void)
{
if (eina_hash_population(address_connections))
{
- CRITICAL("Alive TYPE_ADDRESS connection");
- print_live_connection(shared_connections[ELDBUS_CONNECTION_TYPE_ADDRESS - 1]);
+ Eina_Iterator *it;
+ Eina_Hash_Tuple *tuple;
+
+ it = eina_hash_iterator_tuple_new(address_connections);
+ EINA_ITERATOR_FOREACH(it, tuple)
+ {
+ CRITICAL("Alive TYPE_ADDRESS connection: %s", (char*)tuple->key);
+ print_live_connection(tuple->data);
+ }
+ eina_iterator_free(it);
}
eina_hash_free(address_connections);