}
/* Initialize DB */
+ int ret = -1;
if (1 == vc_widget_client_get_count()) {
ret = vc_db_initialize();
if (0 != ret) {
}
/* request initialization */
- int ret = -1;
int service_state = 0;
ret = vc_widget_dbus_request_initialize(getpid(), &service_state, &g_daemon_pid);
vc_widget_client_set_error(vc_w, VC_ERROR_TIMED_OUT);
ecore_main_loop_thread_safe_call_async(__vc_widget_notify_error, vc_w);
- ret = vc_db_finalize();
- if (0 != ret) {
- SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to finalize DB : %d", ret);
+ if (1 == vc_widget_client_get_count()) {
+ ret = vc_db_finalize();
+ if (0 != ret) {
+ SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to finalize DB : %d", ret);
+ }
}
SLOG(LOG_DEBUG, TAG_VCW, "@@@");
vcd_client_manager_unset_appid();
- ret = vcd_config_finalize();
+ int ret = vcd_config_finalize();
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCD, "[Server WARNING] Fail to finalize config.");
}