From 2ba782b2e7ff8e67db02ed19efe9798e8caa3545 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 6 Jul 2020 16:02:11 -0700 Subject: [PATCH] Added server setting for agent core dump. --- meshagent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshagent.js b/meshagent.js index ca6a8a25..b55d9a1c 100644 --- a/meshagent.js +++ b/meshagent.js @@ -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 })); }