static cynara *p_cynara;
static cynara_configuration *conf;
+/* Wait time to terminate ua-manager (in milli-seconds)
+ wait time is 5 minutes (300000 ms)*/
+#define UAM_TERMINATE_WAIT_TIME 300000
+
static const gchar uam_manager_introspection_xml[] =
"<node name='/net/uamd'>"
" <interface name='net.uamd'>"
if (g_slist_length(uam_app_list) == 0) {
if (source_id == 0) {
UAM_INFO("No App referencing the ua-manager, Terminate the UAM");
- source_id = g_timeout_add_full(G_PRIORITY_HIGH, 5000, __schedule_uam_terminate, NULL, NULL);
+ source_id = g_timeout_add_full(G_PRIORITY_HIGH,
+ UAM_TERMINATE_WAIT_TIME,
+ __schedule_uam_terminate, NULL, NULL);
}
}
_uam_core_cleanup_monitor((char *)name);
}
if (g_slist_length(uam_app_list) == 0 && is_app_removed)
- source_id = g_timeout_add_full(G_PRIORITY_HIGH, 5000, __schedule_uam_terminate, NULL, NULL);
+ source_id = g_timeout_add_full(G_PRIORITY_HIGH,
+ UAM_TERMINATE_WAIT_TIME,
+ __schedule_uam_terminate, NULL, NULL);
}
static void __uam_manager_bus_acquired_cb(