Try to send msg to fork to not crash the app

This commit is contained in:
Dominique Da Silva 2019-11-09 00:59:43 +00:00
parent 6dcc12461b
commit 24fc0a8b30

View file

@ -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++;
}