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) {
try {
// TODO: saveConfig function
/*if (!configJSONRErr && !configJSONPErr) {
if (!configJSONRErr && !configJSONPErr) {
saveConfig();
}*/
}
} catch (err) {
serverconsole.locwarnmessage(
"There was a problem while saving configuration file. Reason: " +