Try to send msg to fork to not crash the app
This commit is contained in:
parent
6dcc12461b
commit
24fc0a8b30
1 changed files with 9 additions and 5 deletions
|
@ -65,11 +65,15 @@ function start(type, data, startedCallback, finishedCallback, failedCallback) {
|
||||||
failedCallback
|
failedCallback
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
executorProcess.send({
|
executorProcess.send({
|
||||||
type: 'start-' + type,
|
type: 'start-' + type,
|
||||||
data,
|
data,
|
||||||
tid: messageTid
|
tid: messageTid
|
||||||
});
|
});
|
||||||
|
} catch (error) {
|
||||||
|
failedCallback('Executor process: ' + error.message);
|
||||||
|
}
|
||||||
|
|
||||||
messageTid++;
|
messageTid++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue