Skip invoking watch callback if the request is coming from the watch callback 80/129380/4
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 16 May 2017 05:10:43 +0000 (14:10 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 29 May 2017 02:17:35 +0000 (11:17 +0900)
commit85e9da10e814a610cf5dfbe9fdb4356ef4fe7331
treefa524f93d1aad323dda6fec2e82e42881ce6144e
parent9fa22dfc161cac8c6328a5bedf05b7b3e940ceac
Skip invoking watch callback if the request is coming from the watch callback

It is possible that request of acquiring/releasing focus can be executed within
focus watch callback. In this case, focus server can try to invoke the focus
watch callback of same node again based on conditions and then it gets blocked.
This patch avoids situation by skipping the callback again.

[Version] 0.11.2
[Issue Type] Enhancement

Change-Id: I2fc337227fa75dfb2d6f660fbc6c2fe4977b0548
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
focus_server/include/mm_sound_mgr_focus.h
focus_server/mm_sound_mgr_focus.c
packaging/libmm-sound.spec