projects
/
platform
/
framework
/
web
/
wrtjs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8484f
)
[Service] Handle exception if workerData is empty
12/263912/4
author
DongHyun Song
<dh81.song@samsung.com>
Mon, 13 Sep 2021 09:13:55 +0000
(18:13 +0900)
committer
DongHyun Song
<dh81.song@samsung.com>
Mon, 13 Sep 2021 09:29:19 +0000
(18:29 +0900)
Sometimes, we are facing, there is a case of workerData is empty.
empty 'id' makes kind of smack error and JavaScript errors.
This issue has been reported from long aging test.
Change-Id: Ib287eecc3906e313dc5b23491aa04939b88543cf
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/service/service_runner.ts
patch
|
blob
|
history
diff --git
a/wrt_app/service/service_runner.ts
b/wrt_app/service/service_runner.ts
index
e3cb9bd
..
63766c7
100644
(file)
--- a/
wrt_app/service/service_runner.ts
+++ b/
wrt_app/service/service_runner.ts
@@
-132,6
+132,11
@@
export function stop(id: string) {
function run() {
let id = workerData.id;
+ if (!id) {
+ console.debug('workerData.id is empty!');
+ process.exit();
+ }
+
Object.defineProperty(global, 'internalId', {
value: id,
writable: false