[Tizen 8.0 Migration][Service] Fix exception and change dummyTimer's interval 47/294247/1 submit/tizen/20230615.160023
authorDongHyun Song <dh81.song@samsung.com>
Fri, 19 May 2023 05:00:55 +0000 (14:00 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 15 Jun 2023 03:57:42 +0000 (03:57 +0000)
commit64e51cacddc9b92b2ccab78f2eb72a7ea4bf73b0
tree760fb5e3a2bb43617fe6cc3eec381b138d1c2df9
parent19ba690a97c1fae238fa34330a48cf1102a2bf3f
[Tizen 8.0 Migration][Service] Fix exception and change dummyTimer's interval

1)
When the app has resumed If the service app has no onRequest function,
JS exception can be raised. So, undefined check is necessary.

2)
Because UvTaskRunner has 500ms interval, 100ms timer is not meaningful
in Node application.

Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/293070/

Change-Id: Id94e561e1c1e1c516c8c9ba82d664f83e2d6f404
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
(cherry picked from commit 4ff972858c6fef14074e2d6ae797ee56a7ad8536)
wrt_app/service/service_runner.ts