Added server setting for agent core dump.

This commit is contained in:
Ylian Saint-Hilaire 2020-07-06 16:02:11 -07:00
parent a97907ffbd
commit f3227b7e4e
1 changed files with 1 additions and 1 deletions

View File

@ -976,7 +976,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
});
// Set agent core dump
if ((parent.parent.config.settings.agentcoredump === true) || (parent.parent.config.settings.agentcoredump === false)) {
if ((parent.parent.config.settings != null) && ((parent.parent.config.settings.agentcoredump === true) || (parent.parent.config.settings.agentcoredump === false))) {
obj.send(JSON.stringify({ action: 'coredump', value: parent.parent.config.settings.agentcoredump }));
}