Remove duplicated logic int stop behavior 12/290312/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 20 Mar 2023 10:25:44 +0000 (19:25 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 6 Apr 2023 09:44:43 +0000 (09:44 +0000)
commitc9f6aecc1bcc4918ccfccd40418b6480cc99795c
tree73a3a02f01a025f0c362ceb9106ba7a1830ae931
parentdba0b90fd1f575f862b799290cf899940962e806
Remove duplicated logic int stop behavior

- Issue:
In __stop_by_silence() function, there is duplicated logic.

- Solution:
In previous code, __stop_by_silence() function send message to client
according to the return value of sttd_server_stop(). However,
sttd_server_stop() is already send message when it is return STATE DONE
value. Thus, the bahvior on __stop_by_silence() is actually unvaluable.
Thus, this patch removes that code to reduce duplicated logic.

Change-Id: I61948b1ad6fe6d243b1240fb8ae484639b072e0e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/sttd_server.c