We must not remove the services when connman is stopped.
static GIOChannel *inotify_channel = NULL;
static uint inotify_watch = 0;
+static connman_bool_t cleanup = FALSE;
#define INTERNAL_CONFIG_PREFIX "__internal"
char *service_id;
GSList *list;
+ if (cleanup == TRUE)
+ goto free_only;
+
connman_info("Removing service configuration %s",
config_service->ident);
service_id);
}
+free_only:
g_free(config_service->ident);
g_free(config_service->type);
g_free(config_service->name);
{
DBG("");
+ cleanup = TRUE;
+
remove_watch();
g_hash_table_destroy(config_table);
config_table = NULL;
+
+ cleanup = FALSE;
}
static char *config_pem_fsid(const char *pem_file)