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.
This commit is contained in:
José Roberto de Souza 2013-06-10 01:33:31 -03:00 committed by José Roberto de Souza
parent 3137e18962
commit 274799cb08
1 changed files with 10 additions and 2 deletions

View File

@ -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);