Add to check return value 32/272932/1
authorwn.jang <wn.jang@samsung.com>
Mon, 28 Mar 2022 07:01:07 +0000 (16:01 +0900)
committerwn.jang <wn.jang@samsung.com>
Mon, 28 Mar 2022 07:01:07 +0000 (16:01 +0900)
Change-Id: I7e8033925bef9f14010fdf5409d8fd008bebb097

server/ttsd_server.c

index e3ebd8bd2024a1c54feece483cbc9d1a78c0c809..14fcb287a005e1587e3cd59760a3e448a9d1a441 100644 (file)
@@ -742,7 +742,10 @@ int ttsd_server_finalize(unsigned int uid)
                SLOG(LOG_ERROR, tts_tag(), "[Server ERROR] ttsd_server_finalize : uid is not valid");
        }
 
-       ttsd_server_stop(uid);
+       int ret = ttsd_server_stop(uid);
+       if (TTSD_ERROR_NONE != ret) {
+               SLOG(LOG_ERROR, tts_tag(), "[ERROR] TTS server top(%u) fail (%d/%s) <<<<<", uid, ret, get_error_message(ret));
+       }
 
        /* Need to unload voice when used voice is unregistered */
        if (0 != ttsd_data_reset_used_voice(uid, __used_voice_cb)) {