summaryrefslogtreecommitdiff
path: root/server/thumb-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/thumb-server.c')
-rwxr-xr-xserver/thumb-server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/thumb-server.c b/server/thumb-server.c
index 3a9a113..8e191f5 100755
--- a/server/thumb-server.c
+++ b/server/thumb-server.c
@@ -58,6 +58,11 @@ int main(void)
GIOChannel *channel = NULL;
GMainContext *context = NULL;
+ if (ms_cynara_initialize() != MS_MEDIA_ERR_NONE) {
+ thumb_err("Cynara initialization failed");
+ return -1;
+ }
+
/* Set VCONFKEY_SYSMAN_MMC_FORMAT callback to get noti for SD card format */
err = vconf_notify_key_changed(VCONFKEY_SYSMAN_MMC_FORMAT, (vconf_callback_fn) _thumb_daemon_vconf_cb, NULL);
if (err == -1)
@@ -107,6 +112,7 @@ int main(void)
g_io_channel_unref(channel);
_thumb_daemon_finish_jobs();
g_main_loop_unref(g_thumb_server_mainloop);
+ ms_cynara_finish();
return 0;
}