1
0
Fork 0
forked from svrjs/svrjs

Enable saving the configuration file when process is exiting

This commit is contained in:
Dorian Niemiec 2024-08-26 06:20:23 +02:00
parent 601eed5f62
commit cc859e0319

View file

@ -2078,10 +2078,9 @@ if (cluster.isPrimary || cluster.isPrimary === undefined) {
process.on("exit", function (code) { process.on("exit", function (code) {
try { try {
// TODO: saveConfig function if (!configJSONRErr && !configJSONPErr) {
/*if (!configJSONRErr && !configJSONPErr) {
saveConfig(); saveConfig();
}*/ }
} catch (err) { } catch (err) {
serverconsole.locwarnmessage( serverconsole.locwarnmessage(
"There was a problem while saving configuration file. Reason: " + "There was a problem while saving configuration file. Reason: " +