mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:25:52 -05:00
Fix recoverable exception in mesh accelerator.
This commit is contained in:
parent
e0d73b2fcd
commit
fed8f021f2
@ -32,7 +32,20 @@ module.exports.processMessage = function(message) {
|
||||
const sign = crypto.createSign('SHA384');
|
||||
sign.end(Buffer.from(message.data, 'binary'));
|
||||
process.send(sign.sign(message.key).toString('binary'));
|
||||
} catch (e) { process.send(null); }
|
||||
} catch (ex) {
|
||||
// If this exception happens, try again.
|
||||
if (ex.code == 'ERR_OSSL_DSO_COULD_NOT_LOAD_THE_SHARED_LIBRARY') {
|
||||
try {
|
||||
const sign = crypto.createSign('SHA384');
|
||||
sign.end(Buffer.from(message.data, 'binary'));
|
||||
process.send(sign.sign(message.key).toString('binary'));
|
||||
} catch (ex) {
|
||||
process.send(null);
|
||||
}
|
||||
} else {
|
||||
process.send(null);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'setState': {
|
||||
|
Loading…
Reference in New Issue
Block a user