This commit is contained in:
AJ ONeal 2018-06-13 11:44:23 -06:00
parent f70deb7f9d
commit 788acbb7e9
2 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ function askForConfig(answers, mainCb) {
function next() {
var q = nextSet.shift();
if (!q) {
if (useTty) { stdin.end(); stdin.close(); }
if (useTty) { stdin.close(); }
rl.close(); mainCb(null, answers);
return;
}

View File

@ -153,12 +153,12 @@ function serveControls() {
if ('undefined' !== typeof conf.telemetry) {
state.config.telemetry = conf.telemetry;
}
conf.servernames.forEach(function (key) {
Object.keys(conf.servernames).forEach(function (key) {
if (!state.config.servernames[key]) {
state.config.servernames[key] = {};
}
});
conf.ports.forEach(function (key) {
Object.keys(conf.ports).forEach(function (key) {
if (!state.config.ports[key]) {
state.config.ports[key] = {};
}