forked from svrjs/svrjs
Enable saving the configuration file when process is exiting
This commit is contained in:
parent
601eed5f62
commit
cc859e0319
1 changed files with 2 additions and 3 deletions
|
@ -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: " +
|
||||||
|
|
Reference in a new issue