[Service] Skip start service when app terminate & Check wrt-service launcher to 4s 19/274919/3
authorliwei <wei90727.li@samsung.com>
Thu, 12 May 2022 05:41:21 +0000 (13:41 +0800)
committerliwei <wei90727.li@samsung.com>
Thu, 12 May 2022 09:36:01 +0000 (17:36 +0800)
commit8a7439e26f9cd37f4d171da9e174ae87fe721b95
tree1c82f463af32230d261217770c8fb4dde4201f19
parenteb94d74c1e4cd899cbfd0d625e64e12d6f76689c
[Service] Skip start service when app terminate & Check wrt-service launcher to 4s

Now an issue happen, service app is launched for a little time, then
wrt-service-launcher is killed by unknown reason, then wrt-service
start to stop, guess xwalk-extension is not stopped completely, at the
same time, service app is reqeusting preview, then crash happen, so
do below changes.

1. Skip start service when app is terminating.
2. Check wrt-service-launcher from 2s to 4s.

Change-Id: I4a7c4b946a89d1a1f6a46903e3582a1d91248888
Signed-off-by: liwei <wei90727.li@samsung.com>
wrt_app/service/service_manager.ts
wrt_app/service/service_runner.ts