Server not waiting for settings to load

This commit is contained in:
Nick O'Leary 2015-03-22 20:55:38 +00:00
parent 153fa7478f
commit 81df74dfc8
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ function init(_server,_settings) {
function start() {
return storage.init(settings)
.then(settings.load(storage))
.then(function() { return settings.load(storage)})
.then(function() {
if (settings.httpAdminRoot !== false) {
require("./api").init(app,storage);