[Service] Fix DeviceApiRouter with "new Service" 88/263488/6 submit/tizen/20210907.160018
authorDongHyun Song <dh81.song@samsung.com>
Fri, 3 Sep 2021 09:10:40 +0000 (18:10 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Tue, 7 Sep 2021 00:59:49 +0000 (09:59 +0900)
commitf7bbe2ba6de7958cbddfa9ec422d825a8b3584d2
treee35a5d86088aafa84aacfedd3193214cbeb5c828
parent7a5e0929702ff7b3c485131812c92c2d5557cfba
[Service] Fix DeviceApiRouter with "new Service"

1)
Fix JavaScript error from DeviceApiRouter in case of global service
app created by "new Service".
There are wrong usage with 'id', which should have set 'internelId',
not 'serviceId'.

2)
If there is an exception on onStart() or onRequest(), there is no
change to call finishStartingService().
Thus, it moves finishStartingService on finally section.

Change-Id: Ie5117cc098dc24826472e974a50692baa2a105ae
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/device_api_router.ts
wrt_app/service/service_runner.ts