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