Skip to content

Commit

Permalink
tweak(core): changed onesync default to be on
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Oct 11, 2024
1 parent 4340c68 commit 93c5e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/components/ConfigVault.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class ConfigVault {
cfgPath: toDefault(cfg.fxRunner.cfgPath, null),
commandLine: toDefault(cfg.fxRunner.commandLine, null),
logPath: toDefault(cfg.fxRunner.logPath, null), //not in template
onesync: toDefault(cfg.fxRunner.onesync, 'legacy'),
onesync: toDefault(cfg.fxRunner.onesync, 'on'),
autostart: toDefault(cfg.fxRunner.autostart, null),
restartDelay: toDefault(cfg.fxRunner.restartDelay, null), //not in template
shutdownNoticeDelay: toDefault(cfg.fxRunner.shutdownNoticeDelay, null), //not in template
Expand Down Expand Up @@ -251,7 +251,7 @@ export default class ConfigVault {

//FXRunner
cfg.fxRunner.logPath = cfg.fxRunner.logPath || `${this.serverProfilePath}/logs/fxserver.log`; //not in template
cfg.fxRunner.onesync = cfg.fxRunner.onesync || 'legacy';
cfg.fxRunner.onesync = cfg.fxRunner.onesync || 'on';
cfg.fxRunner.autostart = (cfg.fxRunner.autostart === 'true' || cfg.fxRunner.autostart === true);
cfg.fxRunner.restartDelay = parseInt(cfg.fxRunner.restartDelay) || 750; //not in template
cfg.fxRunner.shutdownNoticeDelay = parseInt(cfg.fxRunner.shutdownNoticeDelay) || 5; //not in template
Expand Down

0 comments on commit 93c5e32

Please sign in to comment.