projects
/
platform
/
upstream
/
eldbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f180d71
)
eldbus: Fix crash when eldbus is shutdown and we have a live connection of type address
author
José Roberto de Souza
<zehortigoza@gmail.com>
Mon, 10 Jun 2013 04:33:31 +0000
(
01:33
-0300)
committer
José Roberto de Souza
<jose.souza@intel.com>
Mon, 5 Aug 2013 16:25:25 +0000
(13:25 -0300)
Also show info about each connection of type address live.
src/lib/eldbus_core.c
patch
|
blob
|
history
diff --git
a/src/lib/eldbus_core.c
b/src/lib/eldbus_core.c
index
25bde7e
..
a7af40f
100644
(file)
--- a/
src/lib/eldbus_core.c
+++ b/
src/lib/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);