While stopService, program.exit() is called synchronously. It will
terminate wrt-service process directly, then mount point is still
remaining without umount handling.
Change-Id: Ife943100cd6a8cd814fd0fb63693195459b8b607
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt.on('stop-service', (event: any, internal_id: string) => {
ServiceManager.stopService(internal_id);
- if (wrt.getServiceModel() == "STANDALONE")
- process.exit();
+ if (wrt.getServiceModel() === 'STANDALONE') {
+ setTimeout(() => {process.exit()}, 10);
+ }
});
wrt.on('builtin-service', (event: any, internal_id: string, service_name: string) => {