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
}; };
executorProcess.send({ try {
type: 'start-' + type, executorProcess.send({
data, type: 'start-' + type,
tid: messageTid data,
}); tid: messageTid
});
} catch (error) {
failedCallback('Executor process: ' + error.message);
}
messageTid++; messageTid++;
} }