Pop all dbus message 26/296926/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 7 Aug 2023 09:06:27 +0000 (18:06 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 7 Aug 2023 09:13:48 +0000 (18:13 +0900)
commit0df8d83474bad66477decfe8ae91c646abebab04
tree5e5e86a21ba125cb023bf2a189f660d45225711d
parent5c3425b042f92e1f98e1a3ede61cabf063ba9e80
Pop all dbus message

- Issue:
When the test case for audio streaming, stt_cancel() can be ignored
sometimes.

- Solution:
This patch adds while loop in a dbus listener callback to get all the
message from the handle. If there are multiple message requests from the
client library, the server process can receive multiple message at once
while single invocation of listener callback. However, the code does not
pop the all message from the listener handle. This may cause ingoring
some requests from the client. So, this patch fixes this situation using
while loop. Through this patch, listener callback always pop the all
messgae from the listener handle.

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