element_root = g_node_new(element);
- __connman_device_init();
__connman_network_init();
- __connman_connection_init();
+ __connman_device_init();
return 0;
}
started = TRUE;
+ __connman_connection_init();
__connman_detect_init();
}
DBG("");
__connman_detect_cleanup();
+ __connman_connection_cleanup();
}
static gboolean free_driver(GNode *node, gpointer data)
{
DBG("");
- __connman_connection_cleanup();
- __connman_network_cleanup();
__connman_device_cleanup();
+ __connman_network_cleanup();
g_node_traverse(element_root, G_POST_ORDER, G_TRAVERSE_ALL, -1,
free_driver, NULL);