From cc859e03190e371e57b5bff1ea501c6756c734cf Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 06:20:23 +0200 Subject: [PATCH] Enable saving the configuration file when process is exiting --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 9f13faf..59a354c 100644 --- a/src/index.js +++ b/src/index.js @@ -2078,10 +2078,9 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) { process.on("exit", function (code) { try { - // TODO: saveConfig function - /*if (!configJSONRErr && !configJSONPErr) { + if (!configJSONRErr && !configJSONPErr) { saveConfig(); - }*/ + } } catch (err) { serverconsole.locwarnmessage( "There was a problem while saving configuration file. Reason: " +