svace fix 01/217701/3
authorsanghyeok.oh <sanghyeok.oh@samsung.com>
Wed, 13 Nov 2019 09:50:45 +0000 (18:50 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Wed, 13 Nov 2019 10:42:48 +0000 (10:42 +0000)
Change-Id: I7baa37a91792b031d47dd5637dc6cf0577a6422f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
system-cooperator/system-cooperator.c

index 53e55ef..422a03d 100644 (file)
@@ -82,14 +82,26 @@ static int get_sound_state(void)
 
 static gboolean time_expired(gpointer data)
 {
-       feedback_deinitialize();
+       int ret;
+
+       ret = feedback_deinitialize();
+       if (ret != FEEDBACK_ERROR_NONE)
+               _E("Cannot deinitialize feedback.");
+
        quit_main_loop(looptype);
        return FALSE;
 }
 
 static void play_feedback(int type, int pattern)
 {
-       feedback_initialize();
+       int ret;
+
+       ret = feedback_initialize();
+       if (ret != FEEDBACK_ERROR_NONE) {
+               _E("Cannot initialize feedback.");
+               return ;
+       }
+
        feedback_play_type(type, pattern);
 }