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
|
||||
};
|
||||
|
||||
executorProcess.send({
|
||||
type: 'start-' + type,
|
||||
data,
|
||||
tid: messageTid
|
||||
});
|
||||
try {
|
||||
executorProcess.send({
|
||||
type: 'start-' + type,
|
||||
data,
|
||||
tid: messageTid
|
||||
});
|
||||
} catch (error) {
|
||||
failedCallback('Executor process: ' + error.message);
|
||||
}
|
||||
|
||||
messageTid++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue