Prevent state change even if no recognition result callback is registered 78/271578/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 23 Feb 2022 06:00:17 +0000 (15:00 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Wed, 23 Feb 2022 06:00:17 +0000 (15:00 +0900)
commita36f9ba47e82514b578f0ca11e381efb049c6230
treeaac1ee49953d5f5bc1e06715c198ca1ac56ce8cc
parent40cf20fee7508b65b20c03ab584b76d238a1b032
Prevent state change even if no recognition result callback is registered

Current code changes the state to ready when the result comes from the server without registered
recognition result callback. However, this behavior can make difference between client state and
real server state.

To handle this potential issue, this patch prevents the state change in this case. By this change,
client state is always matched with server state.

Change-Id: I4df2438fb09d00185318b487b8f233ba0918798b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/stt.c
client/stt_client.c
client/stt_client.h