Call finalize synchronously when app termination is requested by app fw 95/268695/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 30 Dec 2021 03:05:30 +0000 (12:05 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 3 Jan 2022 05:17:36 +0000 (14:17 +0900)
commit972681e708c1125efcdbc9b260854f10a9df37bd
treec6cee51d62638f07fd89a5d66788a1520844a265
parent330780a2c342dac4abd2ba8c3be8f763fcd560f1
Call finalize synchronously when app termination is requested by app fw

Current code always calls finalize using ecore timer, so finalize codes must be called on next
event loop. However, finalize can not be worked because there is no event loop when app is
terminated by outside app terminate request. This behavior can make unintended problem.

To resolve this problem this patch makes server call finalize synchronously when app is terminated
by outside request. By this change, finalize must be called in the case.

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