Add error handling for issue that occur in a failed state of ducking create 55/314455/2
authorSejun Park <sejun79.park@samsung.com>
Fri, 12 Jul 2024 02:35:34 +0000 (11:35 +0900)
committerSejun Park <sejun79.park@samsung.com>
Fri, 12 Jul 2024 02:58:34 +0000 (11:58 +0900)
Change-Id: I88aa3c3b1ce5f6ffc0b1c2c3bb7a22ba0a4273d2

client/vc_mgr.c
packaging/voice-control.spec

index c0e530562436484372a84b4ca57fd21a237b85d0..862eb272f2091053bdc70fe4bf06a3984e4df501 100644 (file)
@@ -313,7 +313,10 @@ int vc_mgr_initialize(void)
 
        ret = vc_mgr_ducking_create();
        if (VC_ERROR_NONE != ret) {
-               SLOG(LOG_INFO, TAG_VCM, "[INFO] Fail to ducking create : %d", ret);
+               SLOG(LOG_ERROR, TAG_VCM, "[INFO] Fail to ducking create : %d", ret);
+               vc_config_mgr_finalize(g_pid + VC_MANAGER_CONFIG_HANDLE);
+               vc_mgr_client_destroy();
+               return ret;
        }
 
        SLOG(LOG_ERROR, TAG_VCM, "[Success] pid(%d)", g_pid);
index 8ae0cf5fbf83f2b1ae0e11a5ab04553692db9b98..ba68566b3d47790002f90f2b508c6808d3fa33c5 100644 (file)
@@ -1,6 +1,6 @@
 Name:       voice-control
 Summary:    Voice control client library and daemon
-Version:    1.90.2
+Version:    1.90.3
 Release:    1
 Group:      Graphics & UI Framework/Voice Framework
 License:    Apache-2.0